Skip to content

Commit

Permalink
mdssvc: Align an integer type
Browse files Browse the repository at this point in the history
In libjansson 2.13.1 json_array_size() returns a size_t

Signed-off-by: Volker Lendecke <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
vlendec authored and jrasamba committed Feb 1, 2022
1 parent 2b2b41c commit 69f2352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source3/rpc_server/mdssvc/mdssvc_es.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ static void mds_es_search_http_read_done(struct tevent_req *subreq)
json_t *match = NULL;
size_t i;
json_error_t error;
int hits;
size_t hits;
NTSTATUS status;
int ret;
bool ok;
Expand Down Expand Up @@ -770,7 +770,7 @@ static void mds_es_search_http_read_done(struct tevent_req *subreq)
DBG_ERR("Hu?! No results?\n");
goto fail;
}
DBG_DEBUG("Hits: %d\n", hits);
DBG_DEBUG("Hits: %zu\n", hits);

for (i = 0; i < hits; i++) {
const char *path = NULL;
Expand Down

0 comments on commit 69f2352

Please sign in to comment.