summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-12 19:46:38 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-12 19:46:38 +0200
commit3994c42f1938e35218cd5708fcc5a22b1b9a761d (patch)
tree7a4cbbe898abee8bbebb8a355be709415547beff /source4/librpc
parent99fba0ca69516e571d88ecaea3937f1f73287cf3 (diff)
downloadsamba-3994c42f1938e35218cd5708fcc5a22b1b9a761d.tar.gz
samba-3994c42f1938e35218cd5708fcc5a22b1b9a761d.tar.bz2
samba-3994c42f1938e35218cd5708fcc5a22b1b9a761d.zip
Fix number of arguments for file_load() functions.
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/tools/ndrdump.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/source4/librpc/tools/ndrdump.c b/source4/librpc/tools/ndrdump.c
index bc1436916f..b24868eace 100644
--- a/source4/librpc/tools/ndrdump.c
+++ b/source4/librpc/tools/ndrdump.c
@@ -291,11 +291,7 @@ static void ndrdump_data(uint8_t *d, uint32_t l, bool force)
exit(1);
}
-#if (_SAMBA_BUILD_ >= 4)
- data = (uint8_t *)file_load(ctx_filename, &size, mem_ctx);
-#else
- data = (uint8_t *)file_load(ctx_filename, &size, 0);
-#endif
+ data = (uint8_t *)file_load(ctx_filename, &size, 0, mem_ctx);
if (!data) {
perror(ctx_filename);
exit(1);
@@ -322,11 +318,7 @@ static void ndrdump_data(uint8_t *d, uint32_t l, bool force)
}
if (filename)
-#if (_SAMBA_BUILD_ >= 4)
- data = (uint8_t *)file_load(filename, &size, mem_ctx);
-#else
- data = (uint8_t *)file_load(filename, &size, 0);
-#endif
+ data = (uint8_t *)file_load(filename, &size, 0, mem_ctx);
else
data = (uint8_t *)stdin_load(mem_ctx, &size);