svn commit: samba r8522 - in branches/SAMBA_4_0/source: librpc/ndr torture/basic torture/raw

tridge at samba.org tridge at samba.org
Sun Jul 17 10:38:59 GMT 2005


Author: tridge
Date: 2005-07-17 10:38:59 +0000 (Sun, 17 Jul 2005)
New Revision: 8522

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8522

Log:
fixed another couple of size_t warnings

Modified:
   branches/SAMBA_4_0/source/librpc/ndr/ndr_spoolss_buf.c
   branches/SAMBA_4_0/source/torture/basic/aliases.c
   branches/SAMBA_4_0/source/torture/raw/search.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_spoolss_buf.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/ndr/ndr_spoolss_buf.c	2005-07-17 09:56:25 UTC (rev 8521)
+++ branches/SAMBA_4_0/source/librpc/ndr/ndr_spoolss_buf.c	2005-07-17 10:38:59 UTC (rev 8522)
@@ -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;\

Modified: branches/SAMBA_4_0/source/torture/basic/aliases.c
===================================================================
--- branches/SAMBA_4_0/source/torture/basic/aliases.c	2005-07-17 09:56:25 UTC (rev 8521)
+++ branches/SAMBA_4_0/source/torture/basic/aliases.c	2005-07-17 10:38:59 UTC (rev 8522)
@@ -55,7 +55,7 @@
 		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 @@
 		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++;
 	}
 

Modified: branches/SAMBA_4_0/source/torture/raw/search.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/search.c	2005-07-17 09:56:25 UTC (rev 8521)
+++ branches/SAMBA_4_0/source/torture/raw/search.c	2005-07-17 10:38:59 UTC (rev 8522)
@@ -548,7 +548,7 @@
 #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)
 



More information about the samba-cvs mailing list