From e9d66999c6003009aac5a4e115963b1ef581c9dc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 25 Jan 2012 09:10:04 +0100 Subject: Introduce dump_data_file Autobuild-User: Volker Lendecke Autobuild-Date: Wed Jan 25 11:57:18 CET 2012 on sn-devel-104 --- librpc/tools/ndrdump.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'librpc/tools') diff --git a/librpc/tools/ndrdump.c b/librpc/tools/ndrdump.c index e33115ded8..91bf06fcd9 100644 --- a/librpc/tools/ndrdump.c +++ b/librpc/tools/ndrdump.c @@ -125,14 +125,9 @@ static const struct ndr_interface_table *load_iface_from_plugin(const char *plug return p; } -static void printf_cb(const char *buf, void *private_data) -{ - printf("%s", buf); -} - static void ndrdump_data(uint8_t *d, uint32_t l, bool force) { - dump_data_cb(d, l, !force, printf_cb, NULL); + dump_data_file(d, l, !force, stdout); } static NTSTATUS ndrdump_pull_and_print_pipes(const char *function, -- cgit