diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-04-10 19:35:22 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-04-29 19:05:04 +0200 |
commit | aec1bc7febfb8d3b18018e7b5b653210a0d94e93 (patch) | |
tree | 6b1a47f7d7274f1ad0c0caeaab89ced68515bd4f /source4/lib/ldb | |
parent | cc1cf31e55b455f67d846ebe1fe60d305ae2ca11 (diff) | |
download | samba-aec1bc7febfb8d3b18018e7b5b653210a0d94e93.tar.gz samba-aec1bc7febfb8d3b18018e7b5b653210a0d94e93.tar.bz2 samba-aec1bc7febfb8d3b18018e7b5b653210a0d94e93.zip |
ldb:tools/cmdline.c + tools/ldbtest.c - make use of LDB result constants
Reviewed-by: abartlet
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r-- | source4/lib/ldb/tools/cmdline.c | 2 | ||||
-rw-r--r-- | source4/lib/ldb/tools/ldbtest.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/tools/cmdline.c b/source4/lib/ldb/tools/cmdline.c index b2be54ebf9..c2599414b0 100644 --- a/source4/lib/ldb/tools/cmdline.c +++ b/source4/lib/ldb/tools/cmdline.c @@ -297,7 +297,7 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, } /* now connect to the ldb */ - if (ldb_connect(ldb, ret->url, flags, ret->options) != 0) { + if (ldb_connect(ldb, ret->url, flags, ret->options) != LDB_SUCCESS) { fprintf(stderr, "Failed to connect to %s - %s\n", ret->url, ldb_errstring(ldb)); goto failed; diff --git a/source4/lib/ldb/tools/ldbtest.c b/source4/lib/ldb/tools/ldbtest.c index a9d8fafe81..5270357bad 100644 --- a/source4/lib/ldb/tools/ldbtest.c +++ b/source4/lib/ldb/tools/ldbtest.c @@ -356,7 +356,7 @@ static void start_test_index(struct ldb_context **ldb) (*ldb) = ldb_init(options, NULL); ret = ldb_connect(*ldb, options->url, flags, NULL); - if (ret != 0) { + if (ret != LDB_SUCCESS) { printf("failed to connect to %s\n", options->url); exit(LDB_ERR_OPERATIONS_ERROR); } |