summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/winreg.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-08-01 11:17:14 +0200
committerStefan Metzmacher <metze@samba.org>2010-08-01 11:17:14 +0200
commitc7ba3c4dcf77e51434783e5da2b505bf6c7a14c4 (patch)
tree880819a2c7ec1b0d0f9df1166bd1fe63b0e5a61f /source4/torture/rpc/winreg.c
parent81cc92c5af1a6e8c140e5c388d610f9061ca86db (diff)
downloadsamba-c7ba3c4dcf77e51434783e5da2b505bf6c7a14c4.tar.gz
s4:torture/rpc/winreg: fix the build with non gcc compilers (e.g. on solaris)
metze
Diffstat (limited to 'source4/torture/rpc/winreg.c')
-rw-r--r--source4/torture/rpc/winreg.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index c97a3ddc880..572b6876f11 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -1649,7 +1649,7 @@ static bool test_QueryMultipleValues_full(struct dcerpc_binding_handle *b,
struct torture_context *tctx,
struct policy_handle *handle,
uint32_t num_values,
- const char **valuenames,
+ const char * const *valuenames,
bool existing_value)
{
struct winreg_QueryMultipleValues r;
@@ -1719,7 +1719,7 @@ static bool test_QueryMultipleValues2_full(struct dcerpc_binding_handle *b,
struct torture_context *tctx,
struct policy_handle *handle,
uint32_t num_values,
- const char **valuenames,
+ const char * const *valuenames,
bool existing_value)
{
struct winreg_QueryMultipleValues2 r;
@@ -2385,8 +2385,7 @@ static bool test_HKLM_wellknown(struct torture_context *tctx,
{
struct policy_handle newhandle;
int i;
- /* FIXME: This is GCC specific and breaks Solaris 10 "cc" */
- struct {
+ static const struct {
const char *values[3];
uint32_t num_values;
bool existing_value;