summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-08-02 12:38:57 +0200
committerAndreas Schneider <asn@samba.org>2010-08-02 16:42:39 +0200
commit4412bafa4460bbafe2170f980e8ce88937422529 (patch)
tree4041354aa447750050aa29a52562fef73a866eec /source3
parent772fbce9ffd7ec9de7d33e29d96852dce7f35c43 (diff)
downloadsamba-4412bafa4460bbafe2170f980e8ce88937422529.tar.gz
samba-4412bafa4460bbafe2170f980e8ce88937422529.tar.bz2
samba-4412bafa4460bbafe2170f980e8ce88937422529.zip
s3-spoolss: Fixed some C++ build warnings.
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c
index dd438deaa9..33d0cb1e1f 100644
--- a/source3/rpc_server/srv_spoolss_util.c
+++ b/source3/rpc_server/srv_spoolss_util.c
@@ -3374,7 +3374,7 @@ WERROR winreg_printer_enumforms1(TALLOC_CTX *mem_ctx,
val.info1.area.right = IVAL(enum_values[i].data->data, 16);
val.info1.area.bottom = IVAL(enum_values[i].data->data, 20);
/* skip form index IVAL(enum_values[i].data->data, 24)));*/
- val.info1.flags = IVAL(enum_values[i].data->data, 28);
+ val.info1.flags = (enum spoolss_FormFlags) IVAL(enum_values[i].data->data, 28);
info[i + num_builtin] = val;
}
@@ -3697,7 +3697,7 @@ WERROR winreg_printer_getform1(TALLOC_CTX *mem_ctx,
r->area.right = IVAL(data_in, 16);
r->area.bottom = IVAL(data_in, 20);
/* skip index IVAL(data_in, 24)));*/
- r->flags = IVAL(data_in, 28);
+ r->flags = (enum spoolss_FormFlags) IVAL(data_in, 28);
result = WERR_OK;
done:
@@ -4047,7 +4047,7 @@ WERROR winreg_get_driver(TALLOC_CTX *mem_ctx,
result = winreg_enumval_to_dword(info8, v,
"Version",
- &info8->version);
+ (uint32_t *) &info8->version);
CHECK_ERROR(result);
result = winreg_enumval_to_sz(info8, v,