summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-08-03 15:13:57 +0200
committerGünther Deschner <gd@samba.org>2010-08-03 15:57:56 +0200
commitbf19a5228aa582e35d1447cb918a1f66bfdf8b2d (patch)
tree30a33befe047a5c3a6a2f92db7b46d0172e5da8f /source3
parent743a2dedf42c2aa3e9e6caee92e3e9581ae56dce (diff)
downloadsamba-bf19a5228aa582e35d1447cb918a1f66bfdf8b2d.tar.gz
samba-bf19a5228aa582e35d1447cb918a1f66bfdf8b2d.tar.bz2
samba-bf19a5228aa582e35d1447cb918a1f66bfdf8b2d.zip
s3-spoolss: fix type-punned pointer build warning.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c
index 3a9523c5aa..5b47154f41 100644
--- a/source3/rpc_server/srv_spoolss_util.c
+++ b/source3/rpc_server/srv_spoolss_util.c
@@ -4045,13 +4045,15 @@ WERROR winreg_get_driver(TALLOC_CTX *mem_ctx,
for (i = 0; i < num_values; i++) {
const char *tmp_str;
+ uint32_t tmp = 0;
v = &enum_values[i];
result = winreg_enumval_to_dword(info8, v,
"Version",
- (uint32_t *) &info8->version);
+ &tmp);
CHECK_ERROR(result);
+ info8->version = tmp;
result = winreg_enumval_to_sz(info8, v,
"Driver",