summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-08-30 10:31:45 +0200
committerThomas Haller <thaller@redhat.com>2021-09-01 23:25:45 +0200
commitc950517cda752fe15bd121013afb12dbc9a062b1 (patch)
tree7af9be51dd3384a538f0556b99f1295b3796e3ac
parent0dac741e5a5ac44679cb483c1f9a9420c8f7deaf (diff)
downloadNetworkManager-th/device-cleanup-and-kernel-features.tar.gz
l3cfg/trivial: rename "NM_L3_ACD_DEFEND_TYPE_NONE" to "_NM_L3_ACD_DEFEND_TYPE_NONE"th/device-cleanup-and-kernel-features
This value is only used internally. It's not part of the public API of NML3Cfg, and not a value that users could/should set.
-rw-r--r--src/core/nm-l3cfg.c12
-rw-r--r--src/core/nm-l3cfg.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/core/nm-l3cfg.c b/src/core/nm-l3cfg.c
index 303c5c9591..4f661aa060 100644
--- a/src/core/nm-l3cfg.c
+++ b/src/core/nm-l3cfg.c
@@ -314,7 +314,7 @@ static NM_UTILS_ENUM2STR_DEFINE(_l3_acd_defend_type_to_string,
NML3AcdDefendType,
NM_UTILS_ENUM2STR(NM_L3_ACD_DEFEND_TYPE_ALWAYS, "always"),
NM_UTILS_ENUM2STR(NM_L3_ACD_DEFEND_TYPE_NEVER, "never"),
- NM_UTILS_ENUM2STR(NM_L3_ACD_DEFEND_TYPE_NONE, "none"),
+ NM_UTILS_ENUM2STR(_NM_L3_ACD_DEFEND_TYPE_NONE, "none"),
NM_UTILS_ENUM2STR(NM_L3_ACD_DEFEND_TYPE_ONCE, "once"), );
static NM_UTILS_LOOKUP_DEFINE(_l3_acd_defend_type_to_nacd,
@@ -1042,7 +1042,7 @@ _acd_data_collect_tracks_data(const AcdData * acd_data,
guint32 * out_best_acd_timeout_msec,
NML3AcdDefendType *out_best_acd_defend_type)
{
- NML3AcdDefendType best_acd_defend_type = NM_L3_ACD_DEFEND_TYPE_NONE;
+ NML3AcdDefendType best_acd_defend_type = _NM_L3_ACD_DEFEND_TYPE_NONE;
guint32 best_acd_timeout_msec = G_MAXUINT32;
guint n = 0;
guint i;
@@ -1061,7 +1061,7 @@ _acd_data_collect_tracks_data(const AcdData * acd_data,
best_acd_defend_type = acd_track->_priv.acd_defend_type_track;
}
- nm_assert(n == 0 || best_acd_defend_type > NM_L3_ACD_DEFEND_TYPE_NONE);
+ nm_assert(n == 0 || best_acd_defend_type > _NM_L3_ACD_DEFEND_TYPE_NONE);
nm_assert(best_acd_defend_type <= NM_L3_ACD_DEFEND_TYPE_ALWAYS);
NM_SET_OUT(out_best_acd_timeout_msec, n > 0 ? best_acd_timeout_msec : 0u);
@@ -1532,8 +1532,8 @@ _l3_acd_data_add(NML3Cfg * self,
.n_track_infos_alloc = 0,
.acd_event_notify_lst = C_LIST_INIT(acd_data->acd_event_notify_lst),
.probing_timestamp_msec = 0,
- .acd_defend_type_desired = NM_L3_ACD_DEFEND_TYPE_NONE,
- .acd_defend_type_current = NM_L3_ACD_DEFEND_TYPE_NONE,
+ .acd_defend_type_desired = _NM_L3_ACD_DEFEND_TYPE_NONE,
+ .acd_defend_type_current = _NM_L3_ACD_DEFEND_TYPE_NONE,
.acd_defend_type_is_active = FALSE,
};
c_list_link_tail(&self->priv.p->acd_lst_head, &acd_data->acd_lst);
@@ -2469,7 +2469,7 @@ handle_start_defending:
ACD_STATE_CHANGE_MODE_INIT_REAPPLY,
ACD_STATE_CHANGE_MODE_POST_COMMIT));
- nm_assert(acd_data->acd_defend_type_desired > NM_L3_ACD_DEFEND_TYPE_NONE);
+ nm_assert(acd_data->acd_defend_type_desired > _NM_L3_ACD_DEFEND_TYPE_NONE);
nm_assert(acd_data->acd_defend_type_desired <= NM_L3_ACD_DEFEND_TYPE_ALWAYS);
if (acd_data->acd_defend_type_desired != acd_data->acd_defend_type_current) {
diff --git a/src/core/nm-l3cfg.h b/src/core/nm-l3cfg.h
index 29946bdf8e..63f786f99a 100644
--- a/src/core/nm-l3cfg.h
+++ b/src/core/nm-l3cfg.h
@@ -22,7 +22,7 @@
#define NM_L3CFG_SIGNAL_NOTIFY "l3cfg-notify"
typedef enum _nm_packed {
- NM_L3_ACD_DEFEND_TYPE_NONE,
+ _NM_L3_ACD_DEFEND_TYPE_NONE,
NM_L3_ACD_DEFEND_TYPE_NEVER,
NM_L3_ACD_DEFEND_TYPE_ONCE,
NM_L3_ACD_DEFEND_TYPE_ALWAYS,