r3581: fix some signedness warnings with gcc-4.0
authorStefan Metzmacher <metze@samba.org>
Sat, 6 Nov 2004 20:06:56 +0000 (20:06 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:35 +0000 (13:05 -0500)
(there some callers to be fixed later)

metze

source/lib/util.c

index d8e9cb50f9cd75cbaf2cd3bb70c1e5a717500a00..1202cb3aaeef7f446be852238b46d3c5eb9809ef 100644 (file)
@@ -565,9 +565,8 @@ static void print_asc(int level, const uint8_t *buf,int len)
                DEBUGADD(level,("%c", isprint(buf[i])?buf[i]:'.'));
 }
 
-void dump_data(int level, const char *buf1,int len)
+void dump_data(int level, const uint8_t *buf,int len)
 {
-       const uint8_t *buf = (const uint8_t *)buf1;
        int i=0;
        if (len<=0) return;