From c7ba3c4dcf77e51434783e5da2b505bf6c7a14c4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 1 Aug 2010 11:17:14 +0200 Subject: s4:torture/rpc/winreg: fix the build with non gcc compilers (e.g. on solaris) metze --- source4/torture/rpc/winreg.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c index c97a3ddc88..572b6876f1 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; -- cgit