diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-20 22:14:27 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-20 22:33:02 +0200 |
commit | 05f31c3f6d790f650c2b449c4726521464911777 (patch) | |
tree | 220599e7393ce7087deaf6cd59793286a3667c11 | |
parent | 2adfe4730362220afe3874b750e71c6e006b310a (diff) | |
download | samba-05f31c3f6d790f650c2b449c4726521464911777.tar.gz samba-05f31c3f6d790f650c2b449c4726521464911777.tar.bz2 samba-05f31c3f6d790f650c2b449c4726521464911777.zip |
s4:registry/regf.c - add some casts to suppress build warnings on Solaris
-rw-r--r-- | source4/lib/registry/regf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/regf.c b/source4/lib/registry/regf.c index 176b256c87..cfbaaddf54 100644 --- a/source4/lib/registry/regf.c +++ b/source4/lib/registry/regf.c @@ -158,7 +158,7 @@ static DATA_BLOB hbin_alloc(struct regf_data *data, uint32_t size, uint32_t *offset) { DATA_BLOB ret; - uint32_t rel_offset = -1; /* Relative offset ! */ + uint32_t rel_offset = (uint32_t) -1; /* Relative offset ! */ struct hbin_block *hbin = NULL; unsigned int i; @@ -1775,7 +1775,7 @@ static WERROR regf_set_value(struct hive_key *key, const char *name, struct nk_block *nk = private_data->nk; struct vk_block vk; uint32_t i; - uint32_t tmp_vk_offset, vk_offset, old_vk_offset = -1; + uint32_t tmp_vk_offset, vk_offset, old_vk_offset = (uint32_t) -1; DATA_BLOB values; ZERO_STRUCT(vk); |