r3963: fix conpiler warnings
authorStefan Metzmacher <metze@samba.org>
Thu, 25 Nov 2004 19:01:35 +0000 (19:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:06:08 +0000 (13:06 -0500)
metze
(This used to be commit 1239076ef77a2970e806f00e262e910777b40692)

source4/utils/ndrdump.c

index 86513e4efbf1942b5e05117928c6c66098eccfbc..c5867f85f1c7a2e966407d865ab0eb98555e58d3 100644 (file)
@@ -75,7 +75,7 @@ static void show_functions(const struct dcerpc_interface_table *p)
        const struct dcerpc_interface_table *p;
        const struct dcerpc_interface_call *f;
        const char *pipe_name, *function, *inout, *filename;
-       char *data;
+       uint8_t *data;
        size_t size;
        DATA_BLOB blob;
        struct ndr_pull *ndr;
@@ -158,7 +158,7 @@ static void show_functions(const struct dcerpc_interface_table *p)
                        exit(1);
                }
                        
-               data = file_load(ctx_filename, &size);
+               data = (uint8_t *)file_load(ctx_filename, &size);
                if (!data) {
                        perror(ctx_filename);
                        exit(1);
@@ -181,7 +181,7 @@ static void show_functions(const struct dcerpc_interface_table *p)
                }
        } 
 
-       data = file_load(filename, &size);
+       data = (uint8_t *)file_load(filename, &size);
        if (!data) {
                perror(filename);
                exit(1);