diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-07 21:07:20 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-06 17:48:25 +0100 |
commit | 89ab6818e170b305a70b7258ac11e11a2eb53aeb (patch) | |
tree | 3dad36645e6776fdda1bd1162f9338a88c3df38c /source4/lib/registry/util.c | |
parent | 5a3633faf12cdec41dc18064d5364a3fd067a22d (diff) | |
download | samba-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/util.c')
-rw-r--r-- | source4/lib/registry/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/registry/util.c b/source4/lib/registry/util.c index ba739c4921..8a4bc92fe1 100644 --- a/source4/lib/registry/util.c +++ b/source4/lib/registry/util.c @@ -41,7 +41,7 @@ static const struct { /** Return string description of registry value type */ _PUBLIC_ const char *str_regtype(int type) { - int i; + unsigned int i; for (i = 0; reg_value_types[i].name; i++) { if (reg_value_types[i].id == type) return reg_value_types[i].name; @@ -115,7 +115,7 @@ _PUBLIC_ bool reg_string_to_val(TALLOC_CTX *mem_ctx, const char *data_str, uint32_t *type, DATA_BLOB *data) { - int i; + unsigned int i; *type = -1; /* Find the correct type */ @@ -171,7 +171,7 @@ WERROR reg_open_key_abs(TALLOC_CTX *mem_ctx, struct registry_context *handle, { struct registry_key *predef; WERROR error; - int predeflength; + size_t predeflength; char *predefname; if (strchr(name, '\\') != NULL) |