diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-01-14 12:37:32 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-02-09 18:59:19 +0100 |
commit | ef0477a0b92d2e46bf78446c8beb55e16ca3128b (patch) | |
tree | 2385dc66085db6fa30dbaf9d9e620775a1474e26 | |
parent | 6f52070d9b7bf96a283d1ec952998534e5088d4e (diff) | |
download | samba-ef0477a0b92d2e46bf78446c8beb55e16ca3128b.tar.gz samba-ef0477a0b92d2e46bf78446c8beb55e16ca3128b.tar.bz2 samba-ef0477a0b92d2e46bf78446c8beb55e16ca3128b.zip |
ldb:ldbmodify tool - use unsigned counters for consistency with other LDB tools
-rw-r--r-- | source4/lib/ldb/tools/ldbmodify.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/ldb/tools/ldbmodify.c b/source4/lib/ldb/tools/ldbmodify.c index d5252dc206..15f8b2f3f1 100644 --- a/source4/lib/ldb/tools/ldbmodify.c +++ b/source4/lib/ldb/tools/ldbmodify.c @@ -35,7 +35,7 @@ #include "tools/cmdline.h" #include "ldbutil.h" -static int failures; +static unsigned int failures; static struct ldb_cmdline *options; static void usage(struct ldb_context *ldb) @@ -49,7 +49,7 @@ static void usage(struct ldb_context *ldb) /* process modifies for one file */ -static int process_file(struct ldb_context *ldb, FILE *f, int *count) +static int process_file(struct ldb_context *ldb, FILE *f, unsigned int *count) { struct ldb_ldif *ldif; int ret = LDB_SUCCESS; @@ -92,8 +92,8 @@ static int process_file(struct ldb_context *ldb, FILE *f, int *count) int main(int argc, const char **argv) { struct ldb_context *ldb; - int count=0; - int i, ret=LDB_SUCCESS; + unsigned int i, count = 0; + int ret = LDB_SUCCESS; TALLOC_CTX *mem_ctx = talloc_new(NULL); ldb = ldb_init(mem_ctx, NULL); @@ -118,7 +118,7 @@ int main(int argc, const char **argv) talloc_free(mem_ctx); - printf("Modified %d records with %d failures\n", count, failures); + printf("Modified %u records with %u failures\n", count, failures); return ret; } |