1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

libsmb: Avoid casts

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Volker Lendecke 2020-02-22 11:52:51 +01:00 committed by Andreas Schneider
parent abf9d1d745
commit c52a05d76f

View File

@ -256,7 +256,7 @@ SMBC_read_ctx(SMBCCTX *context,
return -1;
}
DEBUG(4, ("smbc_read(%p, %d)\n", file, (int)count));
DEBUG(4, ("smbc_read(%p, %zu)\n", file, count));
if (!SMBC_dlist_contains(context->internal->files, file)) {
errno = EBADF;
@ -284,7 +284,7 @@ SMBC_read_ctx(SMBCCTX *context,
file->offset += ret;
DEBUG(4, (" --> %ld\n", (unsigned long)ret));
DEBUG(4, (" --> %zu\n", ret));
TALLOC_FREE(frame);
return ret; /* Success, ret bytes of data ... */