summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-01-14 12:39:42 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-02-09 18:59:19 +0100
commitb5ccf181f55192ac199af5e377254057a876a216 (patch)
tree4426de9ae8e1f1f08ae42edb575f4f433048eccd /source4/lib/ldb
parentbc675aa391ef29a04d841778771fef1fb737cde4 (diff)
downloadsamba-b5ccf181f55192ac199af5e377254057a876a216.tar.gz
samba-b5ccf181f55192ac199af5e377254057a876a216.tar.bz2
samba-b5ccf181f55192ac199af5e377254057a876a216.zip
ldb:ldbedit tool - use unsigned counters for consistency with other LDB tools
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/tools/ldbedit.c4
1 files changed, 2 insertions, 2 deletions
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;
}