mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 17:40:08 +01:00
libnm/trivial: rename NM_SETTING_SECRET_FLAG_ALL flag (formerly NM_SETTING_SECRET_FLAGS_ALL)
It should mirror the naming pattern of the flags.
This commit is contained in:
parent
99ae5322c9
commit
28c53ea37e
2 changed files with 3 additions and 3 deletions
|
|
@ -129,7 +129,7 @@
|
|||
|
||||
/*****************************************************************************/
|
||||
|
||||
#define NM_SETTING_SECRET_FLAGS_ALL \
|
||||
#define NM_SETTING_SECRET_FLAG_ALL \
|
||||
((NMSettingSecretFlags) ( NM_SETTING_SECRET_FLAG_NONE \
|
||||
| NM_SETTING_SECRET_FLAG_AGENT_OWNED \
|
||||
| NM_SETTING_SECRET_FLAG_NOT_SAVED \
|
||||
|
|
@ -138,7 +138,7 @@
|
|||
static inline gboolean
|
||||
_nm_setting_secret_flags_valid (NMSettingSecretFlags flags)
|
||||
{
|
||||
return !NM_FLAGS_ANY (flags, ~NM_SETTING_SECRET_FLAGS_ALL);
|
||||
return !NM_FLAGS_ANY (flags, ~NM_SETTING_SECRET_FLAG_ALL);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
|||
|
|
@ -763,7 +763,7 @@ get_secret_flags (NMSetting *setting,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
i64 = _nm_utils_ascii_str_to_int64 (flags_val, 10, 0, NM_SETTING_SECRET_FLAGS_ALL, -1);
|
||||
i64 = _nm_utils_ascii_str_to_int64 (flags_val, 10, 0, NM_SETTING_SECRET_FLAG_ALL, -1);
|
||||
if ( i64 == -1
|
||||
|| !_nm_setting_secret_flags_valid (i64)) {
|
||||
/* The flags keys is set to an unexpected value. That is a configuration
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue