diff options
author | David Sommerseth | 2011-04-29 13:28:06 +0200 |
---|---|---|
committer | David Sommerseth | 2011-05-19 20:27:03 +0200 |
commit | 555fc5e34a9b1aca4bfa435023fe1aa336557ec7 (patch) | |
tree | 40cf0f0b02ef80343a6b525e9c3eccc3a9023212 /openvpn-plugin.h | |
parent | ca0ed8458a355aea46d26c209984caaf533784ec (diff) | |
download | openvpn-555fc5e34a9b1aca4bfa435023fe1aa336557ec7.zip openvpn-555fc5e34a9b1aca4bfa435023fe1aa336557ec7.tar.gz |
Fix const declarations in plug-in v3 structs
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>
Diffstat (limited to 'openvpn-plugin.h')
-rw-r--r-- | openvpn-plugin.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openvpn-plugin.h b/openvpn-plugin.h index 5c82daf..24aa36c 100644 --- a/openvpn-plugin.h +++ b/openvpn-plugin.h @@ -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; |