diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-06-07 07:53:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:11 -0500 |
commit | 423dfd67078bd358b1f8a588d242168f94b34c3e (patch) | |
tree | ca7ac6d8bde50c39faaa4b0519b6ce485570629d | |
parent | 075a5dfdc43303734122160e1a82c7685e616002 (diff) | |
download | samba-423dfd67078bd358b1f8a588d242168f94b34c3e.tar.gz samba-423dfd67078bd358b1f8a588d242168f94b34c3e.tar.bz2 samba-423dfd67078bd358b1f8a588d242168f94b34c3e.zip |
r23376: More warnings
(This used to be commit a8ec53f022ff66053231818d4a60568675079ede)
-rw-r--r-- | source3/librpc/tools/ndrdump.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/librpc/tools/ndrdump.c b/source3/librpc/tools/ndrdump.c index 23cfebcb9c..81f6e958e5 100644 --- a/source3/librpc/tools/ndrdump.c +++ b/source3/librpc/tools/ndrdump.c @@ -91,7 +91,7 @@ static char *stdin_load(TALLOC_CTX *mem_ctx, size_t *size) 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 @@ static char *stdin_load(TALLOC_CTX *mem_ctx, size_t *size) 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 @@ const struct dcerpc_interface_table *load_iface_from_plugin(const char *plugin, } 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 @@ const struct dcerpc_interface_table *load_iface_from_plugin(const char *plugin, 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) { |