mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-10 19:31:39 +01:00
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[] = {
^~~~~
This commit is contained in:
parent
9c3a59341f
commit
7a8a4a5fa3
1 changed files with 5 additions and 5 deletions
|
|
@ -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") },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue