From 23c0ae74523c5d35e0c9b41d6a7381a72bb7f6ec Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 1 Feb 2011 20:40:27 +0100 Subject: ldb:ldbsearch tool - simplify error code return --- source4/lib/ldb/tools/ldbsearch.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source4/lib/ldb/tools/ldbsearch.c b/source4/lib/ldb/tools/ldbsearch.c index 3c11fe666e..f68a4bf31d 100644 --- a/source4/lib/ldb/tools/ldbsearch.c +++ b/source4/lib/ldb/tools/ldbsearch.c @@ -306,9 +306,7 @@ int main(int argc, const char **argv) if (options->interactive) { char line[1024]; while (fgets(line, sizeof(line), stdin)) { - if (do_search(ldb, basedn, options, line, attrs) == -1) { - ret = -1; - } + ret = do_search(ldb, basedn, options, line, attrs); } } else { ret = do_search(ldb, basedn, options, expression, attrs); -- cgit