All but one of the users of the "B" format specifier passed in a pointer
to uint32_t instead of what tdb_unpack expected, an "int". Because this
is a purely internal API, change the tdb_unpack function and adjust that
one caller.
To reviewers: Please check carefully, thanks :-)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
uint32_t *d;
size_t bufsize = in_bufsize;
size_t len;
- int *i;
+ uint32_t *i;
void **p;
char *s, **b, **ps;
char c;
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)
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;