From b5ccf181f55192ac199af5e377254057a876a216 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 14 Jan 2011 12:39:42 +0100 Subject: ldb:ldbedit tool - use unsigned counters for consistency with other LDB tools --- source4/lib/ldb/tools/ldbedit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/ldb/tools/ldbedit.c b/source4/lib/ldb/tools/ldbedit.c index 23e8150b0e..5b8beb662d 100644 --- a/source4/lib/ldb/tools/ldbedit.c +++ b/source4/lib/ldb/tools/ldbedit.c @@ -120,7 +120,7 @@ static int merge_edits(struct ldb_context *ldb, unsigned int i; struct ldb_message *msg; int ret = 0; - int adds=0, modifies=0, deletes=0; + unsigned int adds=0, modifies=0, deletes=0; struct ldb_control **req_ctrls = ldb_parse_control_strings(ldb, ldb, (const char **)options->controls); if (options->controls != NULL && req_ctrls == NULL) { fprintf(stderr, "parsing controls failed: %s\n", ldb_errstring(ldb)); @@ -177,7 +177,7 @@ static int merge_edits(struct ldb_context *ldb, return -1; } - printf("# %d adds %d modifies %d deletes\n", adds, modifies, deletes); + printf("# %u adds %u modifies %u deletes\n", adds, modifies, deletes); return ret; } -- cgit