svn commit: samba r23376 - in branches: SAMBA_3_0/source/librpc/tools SAMBA_3_0_26/source/librpc/tools

vlendec at samba.org vlendec at samba.org
Thu Jun 7 07:53:35 GMT 2007


Author: vlendec
Date: 2007-06-07 07:53:33 +0000 (Thu, 07 Jun 2007)
New Revision: 23376

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

Log:
More warnings
Modified:
   branches/SAMBA_3_0/source/librpc/tools/ndrdump.c
   branches/SAMBA_3_0_26/source/librpc/tools/ndrdump.c


Changeset:
Modified: branches/SAMBA_3_0/source/librpc/tools/ndrdump.c
===================================================================
--- branches/SAMBA_3_0/source/librpc/tools/ndrdump.c	2007-06-07 07:49:43 UTC (rev 23375)
+++ branches/SAMBA_3_0/source/librpc/tools/ndrdump.c	2007-06-07 07:53:33 UTC (rev 23376)
@@ -91,7 +91,7 @@
 			result = (char *) talloc_realloc(
 				mem_ctx, result, char *, total_len + num_read);
 		} else {
-			result = talloc_size(mem_ctx, num_read);
+			result = (char *) talloc_size(mem_ctx, num_read);
 		}
 
 		memcpy(result + total_len, buf, num_read);
@@ -105,7 +105,7 @@
 	return result;
 }
 
-const struct dcerpc_interface_table *load_iface_from_plugin(const char *plugin, const char *pipe_name)
+static const struct dcerpc_interface_table *load_iface_from_plugin(const char *plugin, const char *pipe_name)
 {
 	const struct dcerpc_interface_table *p;
 	void *handle;
@@ -118,7 +118,7 @@
 	}
 
 	symbol = talloc_asprintf(NULL, "dcerpc_table_%s", pipe_name);
-	p = dlsym(handle, symbol);
+	p = (const struct dcerpc_interface_table *)dlsym(handle, symbol);
 
 	if (!p) {
 		printf("%s: Unable to find DCE/RPC interface table for '%s': %s\n", plugin, pipe_name, dlerror());
@@ -403,7 +403,9 @@
 		f->ndr_print(ndr_v_print, function, flags, v_st);
 
 		if (blob.length != v_blob.length) {
-			printf("WARNING! orig bytes:%u validated pushed bytes:%u\n", blob.length, v_blob.length);
+			printf("WARNING! orig bytes:%u validated pushed "
+			       "bytes:%u\n", (unsigned int)blob.length,
+			       (unsigned int)v_blob.length);
 		}
 
 		if (ndr_pull->offset != ndr_v_pull->offset) {

Modified: branches/SAMBA_3_0_26/source/librpc/tools/ndrdump.c
===================================================================
--- branches/SAMBA_3_0_26/source/librpc/tools/ndrdump.c	2007-06-07 07:49:43 UTC (rev 23375)
+++ branches/SAMBA_3_0_26/source/librpc/tools/ndrdump.c	2007-06-07 07:53:33 UTC (rev 23376)
@@ -91,7 +91,7 @@
 			result = (char *) talloc_realloc(
 				mem_ctx, result, char *, total_len + num_read);
 		} else {
-			result = talloc_size(mem_ctx, num_read);
+			result = (char *) talloc_size(mem_ctx, num_read);
 		}
 
 		memcpy(result + total_len, buf, num_read);
@@ -105,7 +105,7 @@
 	return result;
 }
 
-const struct dcerpc_interface_table *load_iface_from_plugin(const char *plugin, const char *pipe_name)
+static const struct dcerpc_interface_table *load_iface_from_plugin(const char *plugin, const char *pipe_name)
 {
 	const struct dcerpc_interface_table *p;
 	void *handle;
@@ -118,7 +118,7 @@
 	}
 
 	symbol = talloc_asprintf(NULL, "dcerpc_table_%s", pipe_name);
-	p = dlsym(handle, symbol);
+	p = (const struct dcerpc_interface_table *)dlsym(handle, symbol);
 
 	if (!p) {
 		printf("%s: Unable to find DCE/RPC interface table for '%s': %s\n", plugin, pipe_name, dlerror());
@@ -403,7 +403,9 @@
 		f->ndr_print(ndr_v_print, function, flags, v_st);
 
 		if (blob.length != v_blob.length) {
-			printf("WARNING! orig bytes:%u validated pushed bytes:%u\n", blob.length, v_blob.length);
+			printf("WARNING! orig bytes:%u validated pushed "
+			       "bytes:%u\n", (unsigned int)blob.length,
+			       (unsigned int)v_blob.length);
 		}
 
 		if (ndr_pull->offset != ndr_v_pull->offset) {



More information about the samba-cvs mailing list