summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-09-18 01:50:37 +0200
committerVolker Lendecke <vlendec@samba.org>2011-09-18 17:24:22 +0200
commit49233b41e64e931706d35741c714b6273e8f6e1e (patch)
treeb0d0a86d79be7411f8b14f7da03e3748fd777df9 /source3/utils
parent120b1392d3e6bc0c7a3e25d22df5121819462730 (diff)
downloadsamba-49233b41e64e931706d35741c714b6273e8f6e1e.tar.gz
samba-49233b41e64e931706d35741c714b6273e8f6e1e.tar.bz2
samba-49233b41e64e931706d35741c714b6273e8f6e1e.zip
s3: Fix "ISO C90 forbids mixed declarations and code"
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_rpc_conf.c b/source3/utils/net_rpc_conf.c
index a4bb7331c4..3dec375f1b 100644
--- a/source3/utils/net_rpc_conf.c
+++ b/source3/utils/net_rpc_conf.c
@@ -1759,6 +1759,9 @@ static NTSTATUS rpc_conf_setparm_internal(struct net_context *c,
struct winreg_String key, keyclass;
enum winreg_CreateAction action = 0;
+ const char *canon_valname;
+ const char *canon_valstr;
+
ZERO_STRUCT(hive_hnd);
ZERO_STRUCT(key_hnd);
ZERO_STRUCT(share_hnd);
@@ -1839,9 +1842,6 @@ static NTSTATUS rpc_conf_setparm_internal(struct net_context *c,
break;
}
-
- const char *canon_valname;
- const char *canon_valstr;
/* check if parameter is valid for writing */
if (!lp_canonicalize_parameter_with_value(argv[1], argv[2],
&canon_valname,