diff options
author | Thomas Haller <thaller@redhat.com> | 2019-02-08 11:47:47 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-02-08 20:14:50 +0100 |
commit | 7a8a4a5fa3a7973d362d5f58678090956558965f (patch) | |
tree | 8a9e9e788c2d6c6c480454cebbe09a81920cae7c | |
parent | 9c3a59341f94710f74c5df43a84e453276b5858b (diff) | |
download | NetworkManager-7a8a4a5fa3a7973d362d5f58678090956558965f.tar.gz |
clients: avoid "-Wduplicate-decl-specifier" warning in array declarions in "nm-vpn-helpers.c"
[1/5] Compiling C object 'clients/common/913ef36@@nmc-base@sta/nm-vpn-helpers.c.o'.
../clients/common/nm-vpn-helpers.c: In function ‘nm_vpn_get_secret_names’:
../clients/common/nm-vpn-helpers.c:118:31: warning: duplicate ‘const’ declaration specifier [-Wduplicate-decl-specifier]
static const VpnPasswordName const generic_vpn_secrets[] = {
^~~~~
-rw-r--r-- | clients/common/nm-vpn-helpers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clients/common/nm-vpn-helpers.c b/clients/common/nm-vpn-helpers.c index c3237f12b5..a840d97f97 100644 --- a/clients/common/nm-vpn-helpers.c +++ b/clients/common/nm-vpn-helpers.c @@ -115,27 +115,27 @@ nm_vpn_supports_ipv6 (NMConnection *connection) const VpnPasswordName * nm_vpn_get_secret_names (const char *service_type) { - static const VpnPasswordName const generic_vpn_secrets[] = { + static const VpnPasswordName generic_vpn_secrets[] = { { "password", N_("Password") }, { 0 } }; - static const VpnPasswordName const openvpn_secrets[] = { + static const VpnPasswordName openvpn_secrets[] = { { "password", N_("Password") }, { "cert-pass", N_("Certificate password") }, { "http-proxy-password", N_("HTTP proxy password") }, { 0 } }; - static const VpnPasswordName const vpnc_secrets[] = { + static const VpnPasswordName vpnc_secrets[] = { { "Xauth password", N_("Password") }, { "IPSec secret", N_("Group password") }, { 0 } }; - static const VpnPasswordName const swan_secrets[] = { + static const VpnPasswordName swan_secrets[] = { { "xauthpassword", N_("Password") }, { "pskvalue", N_("Group password") }, { 0 } }; - static const VpnPasswordName const openconnect_secrets[] = { + static const VpnPasswordName openconnect_secrets[] = { { "gateway", N_("Gateway") }, { "cookie", N_("Cookie") }, { "gwcert", N_("Gateway certificate hash") }, |