From 56ba44766854ed7cda265bdaf85913f2a1008282 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 28 Mar 2007 13:34:59 +0000 Subject: r22001: change prototype of dump_data(), so that it takes unsigned char * now, which matches what samba4 has. also fix all the callers to prevent compiler warnings metze (This used to be commit fa322f0cc9c26a9537ba3f0a7d4e4a25941317e7) --- source3/torture/torture.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/torture/torture.c') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 925cac3f32..39495c6a3e 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -2616,7 +2616,7 @@ static BOOL new_trans(struct cli_state *pcli, int fnum, int level) correct = False; } else { printf("qfileinfo: level %d, len = %u\n", level, len); - dump_data(0, buf, len); + dump_data(0, (uint8 *)buf, len); printf("\n"); } SAFE_FREE(buf); @@ -4538,7 +4538,7 @@ static BOOL run_eatest(int dummy) for (i = 0; i < num_eas; i++) { printf("%d: ea_name = %s. Val = ", i, ea_list[i].name); - dump_data(0, (char *)ea_list[i].value.data, + dump_data(0, ea_list[i].value.data, ea_list[i].value.length); } @@ -4567,7 +4567,7 @@ static BOOL run_eatest(int dummy) printf("num_eas = %d\n", (int)num_eas); for (i = 0; i < num_eas; i++) { printf("%d: ea_name = %s. Val = ", i, ea_list[i].name); - dump_data(0, (char *)ea_list[i].value.data, + dump_data(0, ea_list[i].value.data, ea_list[i].value.length); } -- cgit