git.samba.org
/
kamenim
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2adfe47
)
s4:registry/regf.c - add some casts to suppress build warnings on Solaris
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Sun, 20 Jun 2010 20:14:27 +0000
(22:14 +0200)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Sun, 20 Jun 2010 20:33:02 +0000
(22:33 +0200)
source4/lib/registry/regf.c
patch
|
blob
|
history
diff --git
a/source4/lib/registry/regf.c
b/source4/lib/registry/regf.c
index 176b256c873dba3ca556cfe4dd6af73a694f4db0..cfbaaddf54ddd6f069792aa5b1371822fdab5690 100644
(file)
--- 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);