tdb:tools: fix a compiler warning
authorStefan Metzmacher <metze@samba.org>
Thu, 3 Jul 2014 11:34:09 +0000 (13:34 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 16 Sep 2014 07:47:05 +0000 (09:47 +0200)
   ../../tdb/tools/tdbtool.c: In function ‘do_command’:
   ../../tdb/tools/tdbtool.c:717: error: declaration of ‘count’ shadows a global declaration
   ../../tdb/tools/tdbtool.c:597: error: shadowed declaration is here

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/tools/tdbtool.c

index 780782b3c4592895eba5ec7297da8fae8d59f957..beb3af18e23051586991bbd101fa6a5d2fa8103d 100644 (file)
@@ -714,13 +714,13 @@ static int do_command(void)
                        tdb_printfreelist(tdb);
                        return 0;
                case CMD_FREELIST_SIZE: {
-                       int count;
+                       int size;
 
-                       count = tdb_freelist_size(tdb);
-                       if (count < 0) {
+                       size = tdb_freelist_size(tdb);
+                       if (size < 0) {
                                printf("Error getting freelist size.\n");
                        } else {
-                               printf("freelist size: %d\n", count);
+                               printf("freelist size: %d\n", size);
                        }
 
                        return 0;