summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/librpc/ndr/ndr_spoolss_buf.c2
-rw-r--r--source4/torture/basic/aliases.c4
-rw-r--r--source4/torture/raw/search.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/source4/librpc/ndr/ndr_spoolss_buf.c b/source4/librpc/ndr/ndr_spoolss_buf.c
index 2238a916a4..f599e04c86 100644
--- a/source4/librpc/ndr/ndr_spoolss_buf.c
+++ b/source4/librpc/ndr/ndr_spoolss_buf.c
@@ -127,7 +127,7 @@
if (r->in.offered != _ndr_info->data_size) {\
return ndr_pull_error(ndr, NDR_ERR_BUFSIZE,\
"SPOOLSS Buffer: offered[%u] doesn't match length of buffer[%u]",\
- r->in.offered, _ndr_info->data_size);\
+ r->in.offered, (unsigned)_ndr_info->data_size);\
}\
if (r->out.needed <= _ndr_info->data_size) {\
struct __##fn __r;\
diff --git a/source4/torture/basic/aliases.c b/source4/torture/basic/aliases.c
index 364dfeecf2..159c2ae4ae 100644
--- a/source4/torture/basic/aliases.c
+++ b/source4/torture/basic/aliases.c
@@ -55,7 +55,7 @@ static void gen_aliases(struct smbcli_state *cli, struct smb_trans2 *t2, int lev
DLIST_ADD(alias_blobs, t2b);
d_printf("\tFound level %4u (0x%03x) of size %3d (0x%02x)\n",
level, level,
- (int)t2b->data.length, t2b->data.length);
+ (int)t2b->data.length, (int)t2b->data.length);
count++;
}
@@ -285,7 +285,7 @@ static void gen_set_aliases(struct smbcli_state *cli, struct smb_trans2 *t2, int
DLIST_ADD(alias_blobs, t2b);
d_printf("\tFound level %4u (0x%03x) of size %3d (0x%02x)\n",
level, level,
- (int)t2->in.data.length, t2->in.data.length);
+ (int)t2->in.data.length, (int)t2->in.data.length);
count++;
}
diff --git a/source4/torture/raw/search.c b/source4/torture/raw/search.c
index 1798d70b3e..061e0c96f3 100644
--- a/source4/torture/raw/search.c
+++ b/source4/torture/raw/search.c
@@ -548,7 +548,7 @@ static NTSTATUS multiple_search(struct smbcli_state *cli,
#define CHECK_VALUE(v, correct) do { \
if ((v) != (correct)) { \
printf("(%s) Incorrect value %s=%d - should be %d\n", \
- __location__, #v, v, correct); \
+ __location__, #v, v, (int)correct); \
ret = False; \
}} while (0)