summaryrefslogtreecommitdiff
path: root/source4/ntptr/simple_ldb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-14 22:38:10 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-15 08:45:15 +0200
commit80550746ffbb09658ce19520e853e218d793635e (patch)
tree110770cc72a6551c73590dc5073cc5c1923754b0 /source4/ntptr/simple_ldb
parentc362ce36b36937571cf0d4ac8d015f09848a9780 (diff)
downloadsamba-80550746ffbb09658ce19520e853e218d793635e.tar.gz
samba-80550746ffbb09658ce19520e853e218d793635e.tar.bz2
samba-80550746ffbb09658ce19520e853e218d793635e.zip
s4:ntptr/ntptr_simple_ldb.c - use LDB result constants
Diffstat (limited to 'source4/ntptr/simple_ldb')
-rw-r--r--source4/ntptr/simple_ldb/ntptr_simple_ldb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ntptr/simple_ldb/ntptr_simple_ldb.c b/source4/ntptr/simple_ldb/ntptr_simple_ldb.c
index 755c1baa7e..2790f8359d 100644
--- a/source4/ntptr/simple_ldb/ntptr_simple_ldb.c
+++ b/source4/ntptr/simple_ldb/ntptr_simple_ldb.c
@@ -74,13 +74,13 @@ static int sptr_db_search(struct ldb_context *ldb,
#define SET_STRING(ldb, mod, attr, value) do { \
if (value == NULL) return WERR_INVALID_PARAM; \
- if (samdb_msg_add_string(ldb, (TALLOC_CTX *)mod, mod, attr, value) != 0) { \
+ if (samdb_msg_add_string(ldb, (TALLOC_CTX *)mod, mod, attr, value) != LDB_SUCCESS) { \
return WERR_NOMEM; \
} \
} while (0)
#define SET_UINT(ldb, mod, attr, value) do { \
- if (samdb_msg_add_uint(ldb, (TALLOC_CTX *)mod, mod, attr, value) != 0) { \
+ if (samdb_msg_add_uint(ldb, (TALLOC_CTX *)mod, mod, attr, value) != LDB_SUCCESS) { \
return WERR_NOMEM; \
} \
} while (0)