r8522: fixed another couple of size_t warnings
authorAndrew Tridgell <tridge@samba.org>
Sun, 17 Jul 2005 10:38:59 +0000 (10:38 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:29:34 +0000 (13:29 -0500)
(This used to be commit d2c928548336682ffd3dda873f9957f3d041f0af)

source4/librpc/ndr/ndr_spoolss_buf.c
source4/torture/basic/aliases.c
source4/torture/raw/search.c

index 2238a916a436508a1ec9996f4c93512c023eee73..f599e04c8656c8fdc0cbb07c9d8990d119b0fac4 100644 (file)
                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;\
index 364dfeecf24540de3ab36ca0d1ff10994c032945..159c2ae4aeef853cd264fe201c53d9f68f3f718e 100644 (file)
@@ -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++;
        }
 
index 1798d70b3e8a309e60553bcd45df76fa3b1b5329..061e0c96f35c0377132b0038db5fbcca46410a08 100644 (file)
@@ -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)