diff --git a/man/NetworkManager.conf.xml b/man/NetworkManager.conf.xml index 775888e2cf..9ad5d7fb2e 100644 --- a/man/NetworkManager.conf.xml +++ b/man/NetworkManager.conf.xml @@ -1580,7 +1580,7 @@ managed=1 <literal>global-dns-domain</literal> sections Sections with a name starting with the "global-dns-domain-" - prefix allow to define global DNS configuration for specific + prefix allow one to define global DNS configuration for specific domains. The part of section name after "global-dns-domain-" specifies the domain name a section applies to (for example, a section could be named "global-dns-domain-foobar.com"). More diff --git a/src/core/ndisc/nm-ndisc.c b/src/core/ndisc/nm-ndisc.c index ad2edd8df4..3083de009d 100644 --- a/src/core/ndisc/nm-ndisc.c +++ b/src/core/ndisc/nm-ndisc.c @@ -1830,7 +1830,7 @@ _config_init(NMNDiscConfig *config, const NMNDiscConfig *src) nm_assert(config); g_return_if_fail(src); - /* we only allow to set @config if it was cleared (or is not yet initialized). */ + /* we only allow one to set @config if it was cleared (or is not yet initialized). */ nm_assert(!config->l3cfg); nm_assert(!config->ifname); nm_assert(!config->network_id); diff --git a/src/core/platform/tests/test-common.c b/src/core/platform/tests/test-common.c index 26f8b26b37..91445b30f8 100644 --- a/src/core/platform/tests/test-common.c +++ b/src/core/platform/tests/test-common.c @@ -1356,7 +1356,7 @@ nmtstp_check_platform_full(NMPlatform *platform, guint32 obj_type_flags, gboolea /* For IPv4, it also does not reliably always work. This may * be a bug we want to fix. For now, ignore the check. * - * a) Kernel can wrongly allow to configure the same route twice. + * a) Kernel can wrongly allow one to configure the same route twice. * That means, the same route is visible in `ip route` output, * meaning, it would be added twice to the platform cache. * At least due to that problem, may the weak-id not be properly sorted. @@ -1364,7 +1364,7 @@ nmtstp_check_platform_full(NMPlatform *platform, guint32 obj_type_flags, gboolea * a bug of kernel allowing to configure the exact same route twice. * * b) See https://bugzilla.redhat.com/show_bug.cgi?id=2162315 which is - * a bug where kernel does allow to configure single-hop routes that differ by + * a bug where kernel does allow one to configure single-hop routes that differ by * their next-hop weight, but on the netlink API those routes look the same. * * Due to a) and b), the platform cache may contain only one instance diff --git a/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c b/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c index 6e0411c654..39cbddc5e7 100644 --- a/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c +++ b/src/core/settings/plugins/ifcfg-rh/nms-ifcfg-rh-writer.c @@ -3769,7 +3769,7 @@ nms_ifcfg_rh_writer_write_connection(NMConnection *connection, * * FIXME: a much better solution might be, to re-read the connection only based * on the in-memory representation of what we collected above. But the reader - * does not yet allow to inject the configuration. */ + * does not yet allow one to inject the configuration. */ if (out_reread || out_reread_same) { gs_unref_object NMConnection *reread = NULL; gboolean reread_same = FALSE; diff --git a/src/libnm-client-impl/nm-client.c b/src/libnm-client-impl/nm-client.c index fc30cd0646..d2097b44fb 100644 --- a/src/libnm-client-impl/nm-client.c +++ b/src/libnm-client-impl/nm-client.c @@ -7684,7 +7684,7 @@ set_property(GObject *object, guint prop_id, const GValue *value, GParamSpec *ps } else { NMClientInstanceFlags flags = v_uint; - /* After object construction, we only allow to toggle certain flags and + /* After object construction, we only allow one to toggle certain flags and * ignore all other flags. */ if ((priv->instance_flags ^ flags) diff --git a/src/libnm-core-impl/nm-setting-ovs-external-ids.c b/src/libnm-core-impl/nm-setting-ovs-external-ids.c index 9acdae6c5f..22448e686d 100644 --- a/src/libnm-core-impl/nm-setting-ovs-external-ids.c +++ b/src/libnm-core-impl/nm-setting-ovs-external-ids.c @@ -20,7 +20,7 @@ * SECTION:nm-setting-ovs-external-ids * @short_description: External-IDs for OVS database * - * The #NMSettingOvsExternalIDs object is a #NMSetting subclass that allow to + * The #NMSettingOvsExternalIDs object is a #NMSetting subclass that allows one to * configure external ids for OVS. **/ diff --git a/src/libnm-core-impl/nm-setting-user.c b/src/libnm-core-impl/nm-setting-user.c index 8c2a9942fc..69f73a8d03 100644 --- a/src/libnm-core-impl/nm-setting-user.c +++ b/src/libnm-core-impl/nm-setting-user.c @@ -15,7 +15,7 @@ * SECTION:nm-setting-user * @short_description: Describes user properties * - * The #NMSettingUser object is a #NMSetting subclass that allow to attach + * The #NMSettingUser object is a #NMSetting subclass that allows one to attach * arbitrary user data to #NMConnection objects. **/ diff --git a/src/libnm-glib-aux/nm-dedup-multi.c b/src/libnm-glib-aux/nm-dedup-multi.c index c80b17ceba..973a7d1373 100644 --- a/src/libnm-glib-aux/nm-dedup-multi.c +++ b/src/libnm-glib-aux/nm-dedup-multi.c @@ -149,7 +149,7 @@ _entry_unpack(const NMDedupMultiEntry *entry, nm_assert(NM_IN_SET(*out_lookup_head, FALSE, TRUE)); ASSERT_idx_type(*out_idx_type); - /* for lookup of the head, we allow to omit object, but only + /* for lookup of the head, we allow one to omit object, but only * if the idx_type does not partition the objects. Otherwise, we * require a obj to compare. */ nm_assert(!*out_lookup_head || (*out_obj || !(*out_idx_type)->klass->idx_obj_partition_equal)); diff --git a/src/libnm-glib-aux/nm-shared-utils.h b/src/libnm-glib-aux/nm-shared-utils.h index eb86a409b5..1fca6015d8 100644 --- a/src/libnm-glib-aux/nm-shared-utils.h +++ b/src/libnm-glib-aux/nm-shared-utils.h @@ -2143,7 +2143,7 @@ nm_g_ptr_array_pdata(const GPtrArray *arr) * must agree with the owner-ship semantics of @func. * * This is a replacement for g_ptr_array_copy(), which is not available - * before glib 2.62. Since GPtrArray does not allow to access the internal + * before glib 2.62. Since GPtrArray does not allow one to access the internal * element_free_func, we cannot add a compatibility implementation of g_ptr_array_copy() * as the caller must provide the correct element_free_func. * diff --git a/src/libnm-platform/nm-platform.h b/src/libnm-platform/nm-platform.h index 6ea2624a2a..e917102ec5 100644 --- a/src/libnm-platform/nm-platform.h +++ b/src/libnm-platform/nm-platform.h @@ -89,7 +89,7 @@ typedef enum { * long as NM_PLATFORM_IP_ROUTE_CMP_TYPE_ID differs. */ NM_PLATFORM_IP_ROUTE_CMP_TYPE_WEAK_ID, - /* compare two routes as kernel would allow to add them with + /* compare two routes as kernel would allow one to add them with * `ip route append`. In other words, kernel does not allow you to * add two routes (at the same time) which compare equal according * to NM_PLATFORM_IP_ROUTE_CMP_TYPE_ID. diff --git a/src/libnm-std-aux/nm-std-aux.h b/src/libnm-std-aux/nm-std-aux.h index 7f08de5d8d..840aaadeec 100644 --- a/src/libnm-std-aux/nm-std-aux.h +++ b/src/libnm-std-aux/nm-std-aux.h @@ -975,7 +975,7 @@ nm_memcpy(void *restrict dest, const void *restrict src, size_t n) * side-effects. */ #define NM_IN_SET_SE(x, ...) _NM_IN_SET(NM_UNIQ, |, typeof(x), x, __VA_ARGS__) -/* the *_TYPED forms allow to explicitly select the type of "x". This is useful +/* the *_TYPED forms allow one to explicitly select the type of "x". This is useful * if "x" doesn't support typeof (bitfields) or you want to gracefully convert * a type using automatic type conversion rules (but not forcing the conversion * with a cast). */