summaryrefslogtreecommitdiff
path: root/src/platform/nm-linux-platform.c
diff options
context:
space:
mode:
authorYuri Chornoivan <yurchor@ukr.net>2020-07-04 11:37:01 +0300
committerThomas Haller <thaller@redhat.com>2020-07-07 11:33:46 +0200
commit4e33f8cd89fa1edd161f81d56fdfb42faf07f9fa (patch)
tree7fefedc0aa5e0887c04bbf501523a62aaa640575 /src/platform/nm-linux-platform.c
parent4c52c69d66d542d1ef40a8b48cff7ace3a9baef4 (diff)
downloadNetworkManager-4e33f8cd89fa1edd161f81d56fdfb42faf07f9fa.tar.gz
all: fix minor typos
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/565
Diffstat (limited to 'src/platform/nm-linux-platform.c')
-rw-r--r--src/platform/nm-linux-platform.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
index 57682e9f77..a0edd13c9e 100644
--- a/src/platform/nm-linux-platform.c
+++ b/src/platform/nm-linux-platform.c
@@ -152,7 +152,7 @@ G_STATIC_ASSERT (RTA_MAX == (__RTA_MAX - 1));
/*****************************************************************************/
-/* Appeared in in kernel prior to 3.13 dated 19 January, 2014 */
+/* Appeared in the kernel prior to 3.13 dated 19 January, 2014 */
#ifndef ARPHRD_6LOWPAN
#define ARPHRD_6LOWPAN 825
#endif
@@ -271,7 +271,7 @@ struct _ifla_vf_vlan_info {
/*****************************************************************************/
-/* Appeared in in kernel 4.0 dated April 12, 2015 */
+/* Appeared in the kernel 4.0 dated April 12, 2015 */
#ifndef BRIDGE_VLAN_INFO_RANGE_BEGIN
#define BRIDGE_VLAN_INFO_RANGE_BEGIN (1 << 3) /* VLAN is start of vlan range */
#define BRIDGE_VLAN_INFO_RANGE_END (1 << 4) /* VLAN is end of vlan range */
@@ -1050,12 +1050,12 @@ _linktype_get_type (NMPlatform *platform,
* it means that their type may not have been determined correctly
* due to race conditions while accessing sysfs.
*
- * This way, we save edditional ethtool/sysctl lookups, but moreover,
+ * This way, we save additional ethtool/sysctl lookups, but moreover,
* we keep the linktype stable and don't change it as long as the link
* exists.
*
* Note that kernel *can* reuse the ifindex (on integer overflow, and
- * when moving interfce to other netns). Thus here there is a tiny potential
+ * when moving interface to other netns). Thus here there is a tiny potential
* of messing stuff up. */
if ( obj
&& obj->_link.netlink.is_in_netlink
@@ -2602,7 +2602,7 @@ again:
&p->endpoint) < 0)
goto toobig_peers;
} else {
- /* I think there is no way to clear an endpoint, though there shold be. */
+ /* I think there is no way to clear an endpoint, though there should be. */
nm_assert (p->endpoint.sa.sa_family == AF_UNSPEC);
}
}
@@ -2839,7 +2839,7 @@ _new_from_nl_link (NMPlatform *platform, const NMPCache *cache, struct nlmsghdr
if (!tb[IFLA_MTU]) {
/* Kernel has two places that send RTM_GETLINK messages:
* net/core/rtnetlink.c and net/wireless/ext-core.c.
- * Unfotunatelly ext-core.c sets only IFLA_WIRELESS and
+ * Unfortunately ext-core.c sets only IFLA_WIRELESS and
* IFLA_IFNAME. This confuses code in this function, because
* it cannot get complete set of data for the interface and
* later incomplete object this function creates is used to
@@ -3162,7 +3162,7 @@ _new_from_nl_addr (struct nlmsghdr *nlh, gboolean id_only)
* If IFA_LOCAL is missing, IFA_ADDRESS is @address and @peer_address
* is :: (all-zero).
*
- * If unexpectely IFA_ADDRESS is missing, make the best of it -- but it _should_
+ * If unexpectedly IFA_ADDRESS is missing, make the best of it -- but it _should_
* actually be there. */
if (tb[IFA_ADDRESS] || tb[IFA_LOCAL]) {
if (tb[IFA_LOCAL]) {
@@ -8736,7 +8736,7 @@ continue_reading:
* NL_PROCEED. */
} else if (hdr->nlmsg_type == NLMSG_OVERRUN) {
/* Data got lost, report back to user. The default action is to
- * quit parsing. The user may overrule this action by retuning
+ * quit parsing. The user may overrule this action by returning
* NL_SKIP or NL_PROCEED (dangerous) */
err = -NME_NL_MSG_OVERFLOW;
abort_parsing = TRUE;