From 89ab6818e170b305a70b7258ac11e11a2eb53aeb Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 7 Nov 2009 21:07:20 +0100 Subject: s4:libregistry - change counters to be "unsigned" Also the s4 registry library has to have "unsigned" counters like the Windows one. --- source4/lib/registry/dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/lib/registry/dir.c') diff --git a/source4/lib/registry/dir.c b/source4/lib/registry/dir.c index 42946bceec..4380dce74e 100644 --- a/source4/lib/registry/dir.c +++ b/source4/lib/registry/dir.c @@ -159,7 +159,7 @@ static WERROR reg_dir_key_by_index(TALLOC_CTX *mem_ctx, { struct dirent *e; const struct dir_key *dk = talloc_get_type(k, struct dir_key); - int i = 0; + unsigned int i = 0; DIR *d; d = opendir(dk->path); @@ -342,14 +342,14 @@ static WERROR reg_dir_get_value(TALLOC_CTX *mem_ctx, } static WERROR reg_dir_enum_value(TALLOC_CTX *mem_ctx, - struct hive_key *key, int idx, + struct hive_key *key, uint32_t idx, const char **name, uint32_t *type, DATA_BLOB *data) { const struct dir_key *dk = talloc_get_type(key, struct dir_key); DIR *d; struct dirent *e; - int i; + unsigned int i; d = opendir(dk->path); if (d == NULL) { -- cgit