From 80550746ffbb09658ce19520e853e218d793635e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Thu, 14 Oct 2010 22:38:10 +0200 Subject: [PATCH] s4:ntptr/ntptr_simple_ldb.c - use LDB result constants --- source4/ntptr/simple_ldb/ntptr_simple_ldb.c | 4 ++-- 1 file 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 755c1baa7eb..2790f8359d6 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) -- 2.11.4.GIT