summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-01-25 09:10:04 +0100
committerVolker Lendecke <vlendec@samba.org>2012-01-25 11:57:18 +0100
commite9d66999c6003009aac5a4e115963b1ef581c9dc (patch)
tree8024ef9fa8e5ad0f250d5b2a2b65f25b036832d1 /librpc
parent8dd63b93431a267d5bd0f32278f7229adbb44eaa (diff)
downloadsamba-e9d66999c6003009aac5a4e115963b1ef581c9dc.tar.gz
samba-e9d66999c6003009aac5a4e115963b1ef581c9dc.tar.bz2
samba-e9d66999c6003009aac5a4e115963b1ef581c9dc.zip
Introduce dump_data_file
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 25 11:57:18 CET 2012 on sn-devel-104
Diffstat (limited to 'librpc')
-rw-r--r--librpc/tools/ndrdump.c7
1 files changed, 1 insertions, 6 deletions
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,