summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-08-23 02:10:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:27 -0500
commitdfa4e5f78440e375a9c47eab913c5980c1aa640b (patch)
tree496a2c84d63e79db71181f9383177ca82b322588 /source4/lib
parent32ce9de932c3f08b728bd9c743c70d702dc68a88 (diff)
downloadsamba-dfa4e5f78440e375a9c47eab913c5980c1aa640b.tar.gz
samba-dfa4e5f78440e375a9c47eab913c5980c1aa640b.tar.bz2
samba-dfa4e5f78440e375a9c47eab913c5980c1aa640b.zip
r24631: Fix up format warnings, found on my Fedora 7 x86_64 workstation.
Andrew Bartlett (This used to be commit 3d74d178bfd89127ff387939e848b240e638cc35)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/gendb.c1
-rw-r--r--source4/lib/util/tests/idtree.c9
2 files changed, 6 insertions, 4 deletions
diff --git a/source4/lib/gendb.c b/source4/lib/gendb.c
index 097a2795f4..003384b1ee 100644
--- a/source4/lib/gendb.c
+++ b/source4/lib/gendb.c
@@ -23,6 +23,7 @@
#include "includes.h"
#include "lib/ldb/include/ldb.h"
#include "lib/ldb/include/ldb_errors.h"
+#include "lib/db_wrap.h"
/*
search the sam for the specified attributes - va_list variant
diff --git a/source4/lib/util/tests/idtree.c b/source4/lib/util/tests/idtree.c
index 448abb5c04..d89fb8c489 100644
--- a/source4/lib/util/tests/idtree.c
+++ b/source4/lib/util/tests/idtree.c
@@ -61,10 +61,11 @@ static bool torture_local_idtree_simple(struct torture_context *tctx)
}
} else {
if (p != NULL) {
- torture_fail(tctx, talloc_asprintf(tctx,
- "non-present at %d gave %p (would be %d)",
- ii, p,
- (int)(((char *)p) - (char *)(&ids[0])) / sizeof(int)));
+ torture_fail(tctx,
+ talloc_asprintf(tctx,
+ "non-present at %d gave %p (would be %d)",
+ ii, p,
+ (int)((((char *)p) - (char *)(&ids[0])) / sizeof(int))));
}
if (random() % 5) {
ids[ii] = idr_get_new(idr, &ids[ii], n);