summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-08 12:20:51 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-08 12:27:27 +0200
commit2164ba51e299dd2f2829620d5616cd04a0a837f4 (patch)
treecbae4f55fea97e5684d36de58f7fe01c8680b744 /source4
parent479fd9c03fc84824fea310b76d48ce271587cfe7 (diff)
downloadsamba-2164ba51e299dd2f2829620d5616cd04a0a837f4.tar.gz
samba-2164ba51e299dd2f2829620d5616cd04a0a837f4.tar.bz2
samba-2164ba51e299dd2f2829620d5616cd04a0a837f4.zip
s4:registry - "patchfile_preg.c" - use "sizeof(uint32_t)" for some size specifications
Looks nicer.
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/registry/patchfile_preg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/patchfile_preg.c b/source4/lib/registry/patchfile_preg.c
index c75b08dbe1..19e60fa9ba 100644
--- a/source4/lib/registry/patchfile_preg.c
+++ b/source4/lib/registry/patchfile_preg.c
@@ -120,7 +120,7 @@ static WERROR reg_preg_diff_del_value(void *_data, const char *key_name,
blob.data = (uint8_t *)talloc(data->ctx, uint32_t);
W_ERROR_HAVE_NO_MEMORY(blob.data);
SIVAL(blob.data, 0, 0);
- blob.length = 4;
+ blob.length = sizeof(uint32_t);
werr = reg_preg_diff_set_value(data, key_name, val, REG_DWORD, blob);
@@ -139,7 +139,7 @@ static WERROR reg_preg_diff_del_all_values(void *_data, const char *key_name)
blob.data = (uint8_t *)talloc(data->ctx, uint32_t);
W_ERROR_HAVE_NO_MEMORY(blob.data);
SIVAL(blob.data, 0, 0);
- blob.length = 4;
+ blob.length = sizeof(uint32_t);
werr = reg_preg_diff_set_value(data, key_name, "**DelVals.", REG_DWORD, blob);