summaryrefslogtreecommitdiff
path: root/source4/lib/util
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2007-12-17 18:31:16 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:51:17 +0100
commitac4237e9971bd50ef194f2166365ff91af4dbfaa (patch)
tree13c69a409f1e327f3625e4d1eb981a5e1943c0d0 /source4/lib/util
parent93378b9893235596f2c88144e17a5809fefe5bc7 (diff)
downloadsamba-ac4237e9971bd50ef194f2166365ff91af4dbfaa.tar.gz
samba-ac4237e9971bd50ef194f2166365ff91af4dbfaa.tar.bz2
samba-ac4237e9971bd50ef194f2166365ff91af4dbfaa.zip
r26511: Janitorial: Fix a warning for the 'printf' attribute on gendb_search_v
While at it, also add a PRINTF_ATTRIBUTE for talloc_vasprintf. (This used to be commit 5b3a8c8ae195e6a98357a407a0699493f54a8b79)
Diffstat (limited to 'source4/lib/util')
-rw-r--r--source4/lib/util/util_ldb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/util/util_ldb.c b/source4/lib/util/util_ldb.c
index ba8443c236..a8719af190 100644
--- a/source4/lib/util/util_ldb.c
+++ b/source4/lib/util/util_ldb.c
@@ -23,16 +23,16 @@
#include "includes.h"
#include "lib/ldb/include/ldb.h"
#include "lib/ldb/include/ldb_errors.h"
-
+#include "lib/util/util_ldb.h"
/*
search the sam for the specified attributes - va_list variant
*/
-int gendb_search_v(struct ldb_context *ldb,
+int gendb_search_v(struct ldb_context *ldb,
TALLOC_CTX *mem_ctx,
struct ldb_dn *basedn,
struct ldb_message ***msgs,
const char * const *attrs,
- const char *format,
+ const char *format,
va_list ap) _PRINTF_ATTRIBUTE(6,0)
{
enum ldb_scope scope = LDB_SCOPE_SUBTREE;