summaryrefslogtreecommitdiff
path: root/source4/lib/registry/interface.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-07 21:07:20 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-06 17:48:25 +0100
commit89ab6818e170b305a70b7258ac11e11a2eb53aeb (patch)
tree3dad36645e6776fdda1bd1162f9338a88c3df38c /source4/lib/registry/interface.c
parent5a3633faf12cdec41dc18064d5364a3fd067a22d (diff)
downloadsamba-89ab6818e170b305a70b7258ac11e11a2eb53aeb.tar.gz
samba-89ab6818e170b305a70b7258ac11e11a2eb53aeb.tar.bz2
samba-89ab6818e170b305a70b7258ac11e11a2eb53aeb.zip
s4:libregistry - change counters to be "unsigned"
Also the s4 registry library has to have "unsigned" counters like the Windows one.
Diffstat (limited to 'source4/lib/registry/interface.c')
-rw-r--r--source4/lib/registry/interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/registry/interface.c b/source4/lib/registry/interface.c
index 81ca2c39bc..5d24f6da74 100644
--- a/source4/lib/registry/interface.c
+++ b/source4/lib/registry/interface.c
@@ -44,7 +44,7 @@ const struct reg_predefined_key reg_predefined_keys[] = {
/** Obtain name of specific hkey. */
_PUBLIC_ const char *reg_get_predef_name(uint32_t hkey)
{
- int i;
+ unsigned int i;
for (i = 0; reg_predefined_keys[i].name; i++) {
if (reg_predefined_keys[i].handle == hkey)
return reg_predefined_keys[i].name;
@@ -58,7 +58,7 @@ _PUBLIC_ WERROR reg_get_predefined_key_by_name(struct registry_context *ctx,
const char *name,
struct registry_key **key)
{
- int i;
+ unsigned int i;
for (i = 0; reg_predefined_keys[i].name; i++) {
if (!strcasecmp(reg_predefined_keys[i].name, name))
@@ -150,7 +150,7 @@ _PUBLIC_ WERROR reg_key_get_info(TALLOC_CTX *mem_ctx,
*/
_PUBLIC_ WERROR reg_key_get_subkey_by_index(TALLOC_CTX *mem_ctx,
const struct registry_key *key,
- int idx, const char **name,
+ uint32_t idx, const char **name,
const char **keyclass,
NTTIME *last_changed_time)
{