summaryrefslogtreecommitdiff
path: root/source4/lib/registry/tools
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-21 23:41:50 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-21 23:41:50 +0100
commit872d2330a4d0d2608993fab9e9c0b0c3aa3921f8 (patch)
treee92dcaed11d3880b15d027df6bd483b369b12fda /source4/lib/registry/tools
parent61761cbac8f609c9ee7c6d391739c50bd4844340 (diff)
downloadsamba-872d2330a4d0d2608993fab9e9c0b0c3aa3921f8.tar.gz
samba-872d2330a4d0d2608993fab9e9c0b0c3aa3921f8.tar.bz2
samba-872d2330a4d0d2608993fab9e9c0b0c3aa3921f8.zip
s4:regtree - fix counter variables to be "unsigned"
Diffstat (limited to 'source4/lib/registry/tools')
-rw-r--r--source4/lib/registry/tools/regtree.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/registry/tools/regtree.c b/source4/lib/registry/tools/regtree.c
index 72158283b3..3a7026b4a4 100644
--- a/source4/lib/registry/tools/regtree.c
+++ b/source4/lib/registry/tools/regtree.c
@@ -33,7 +33,7 @@
* @param fullpath Whether the full pat hshould be printed or just the last bit
* @param novals Whether values should not be printed
*/
-static void print_tree(int level, struct registry_key *p,
+static void print_tree(unsigned int level, struct registry_key *p,
const char *name,
bool fullpath, bool novals)
{
@@ -78,7 +78,7 @@ static void print_tree(int level, struct registry_key *p,
for(i = 0; W_ERROR_IS_OK(error = reg_key_get_value_by_index(
mem_ctx, p, i, &valuename, &valuetype, &valuedata));
i++) {
- int j;
+ unsigned int j;
for(j = 0; j < level+1; j++) putchar(' ');
printf("%s\n", reg_val_description(mem_ctx,
lp_iconv_convenience(cmdline_lp_ctx), valuename,
@@ -101,7 +101,8 @@ static void print_tree(int level, struct registry_key *p,
int main(int argc, char **argv)
{
- int opt, i;
+ int opt;
+ unsigned int i;
const char *file = NULL;
const char *remote = NULL;
poptContext pc;