]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix const declarations in plug-in v3 structs
authorDavid Sommerseth <davids@redhat.com>
Fri, 29 Apr 2011 11:28:06 +0000 (13:28 +0200)
committerDavid Sommerseth <davids@redhat.com>
Thu, 19 May 2011 18:27:03 +0000 (20:27 +0200)
Microsoft Visual Studio complains about const char const **ptr declarations
and expects them to be be const char ** const ptr.  The latter is what was the
intention, that neither the pointer nor the value(s) it points at can be changed.

Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
openvpn-plugin.h

index 5c82dafc547a794f4803e2d21ab1393c6baad5f8..24aa36cbf48d792920ac79f6855ef1074929bb2d 100644 (file)
@@ -203,8 +203,8 @@ struct openvpn_plugin_string_list
 struct openvpn_plugin_args_open_in
 {
   const int type_mask;
-  const char const **argv;
-  const char const **envp;
+  const char ** const argv;
+  const char ** const envp;
 };
 
 
@@ -267,8 +267,8 @@ struct openvpn_plugin_args_open_return
 struct openvpn_plugin_args_func_in
 {
   const int type;
-  const char const **argv;
-  const char const **envp;
+  const char ** const argv;
+  const char ** const envp;
   openvpn_plugin_handle_t handle;
   void *per_client_context;
   int current_cert_depth;