diff options
author | Thomas Haller <thaller@redhat.com> | 2022-03-01 13:24:27 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-03-13 12:02:08 +0100 |
commit | 53406e721da77175a970534b0f6c28405a0602e9 (patch) | |
tree | 3f6f13817c1450f5ea069eea6a32684a2d50f506 | |
parent | 6f948fcd2e651a3511f5d9d9f0e75581dcc33a6f (diff) | |
download | NetworkManager-53406e721da77175a970534b0f6c28405a0602e9.tar.gz |
core/trivial: rename parameter to link_changed_cb()
"info" is not a good name. Variables of this kind are usually
called "plink" or "pllink". Rename.
-rw-r--r-- | src/core/devices/nm-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c index aa4c99782c..b96f8e7294 100644 --- a/src/core/devices/nm-device.c +++ b/src/core/devices/nm-device.c @@ -6641,7 +6641,7 @@ static void link_changed_cb(NMPlatform *platform, int obj_type_i, int ifindex, - NMPlatformLink *info, + NMPlatformLink *pllink, int change_type_i, NMDevice *self) { @@ -6654,7 +6654,7 @@ link_changed_cb(NMPlatform *platform, priv = NM_DEVICE_GET_PRIVATE(self); if (ifindex == nm_device_get_ifindex(self)) { - if (!(info->n_ifi_flags & IFF_UP)) + if (!(pllink->n_ifi_flags & IFF_UP)) priv->device_link_changed_down = TRUE; if (!priv->device_link_changed_id) { priv->device_link_changed_id = g_idle_add(device_link_changed, self); |