vpn: fix warning in vpn-manager about implicit conversion of enum types

This bug has no real consequense, because the numerical values of the
enum values are identical.

clang warns:

    make[4]: Entering directory `./NetworkManager/src'
      CC       nm-vpn-connection.lo
    vpn-manager/nm-vpn-connection.c:179:10: error: implicit conversion from enumeration type 'VpnState' to different enumeration type 'NMVPNConnectionState' (aka 'enum NMVPNConnectionState') [-Werror,-Wenum-conversion]
                    return STATE_UNKNOWN;
                    ~~~~~~ ^~~~~~~~~~~~~

Signed-off-by: Thomas Haller <thaller@redhat.com>
(cherry picked from commit 45c5365d85)
This commit is contained in:
Thomas Haller 2014-07-26 22:44:25 +02:00
parent 87b6917dc7
commit c10d431564

View file

@ -173,7 +173,7 @@ _state_to_nm_vpn_state (VpnState state)
case STATE_FAILED:
return NM_VPN_CONNECTION_STATE_FAILED;
default:
return STATE_UNKNOWN;
return NM_VPN_CONNECTION_STATE_UNKNOWN;
}
}