diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c index 9f39fcb4df3..035daf8b7b7 100644 --- a/source3/lib/util_tdb.c +++ b/source3/lib/util_tdb.c @@ -153,7 +153,7 @@ int tdb_unpack(const uint8_t *buf, int in_bufsize, const char *fmt, ...) uint32_t *d; size_t bufsize = in_bufsize; size_t len; - int *i; + uint32_t *i; void **p; char *s, **b, **ps; char c; @@ -216,7 +216,7 @@ int tdb_unpack(const uint8_t *buf, int in_bufsize, const char *fmt, ...) memcpy(s, buf, len); break; case 'B': /* fixed-length string */ - i = va_arg(ap, int *); + i = va_arg(ap, uint32_t *); b = va_arg(ap, char **); len = 4; if (bufsize < len) diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 105166ddf7d..e6caaa1222f 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -352,7 +352,7 @@ static int unpack_devicemode(TALLOC_CTX *mem_ctx, struct spoolss_DeviceMode *dm; enum ndr_err_code ndr_err; char *data = NULL; - int data_len = 0; + uint32_t data_len = 0; DATA_BLOB blob; int len = 0;