chiark / gitweb /
Fix several small typos
authorJonathan Boulle <jonathanboulle@gmail.com>
Fri, 23 May 2014 18:56:42 +0000 (11:56 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 24 May 2014 23:01:03 +0000 (19:01 -0400)
CODING_STYLE
src/core/unit.c
src/network/networkd-wait-online.c

index 996897bcde976479faf2845d6ca7a5f6f9930250..4ec5923d3d19aadcf304d9f5cdec535efa4e09ae 100644 (file)
@@ -16,7 +16,7 @@
   half-initialized objects, too
 
 - Error codes are returned as negative Exxx. i.e. return -EINVAL. There
   half-initialized objects, too
 
 - Error codes are returned as negative Exxx. i.e. return -EINVAL. There
-  are some exceptions: for constructors its is OK to return NULL on
+  are some exceptions: for constructors it is OK to return NULL on
   OOM. For lookup functions NULL is fine too for "not found".
 
   Be strict with this. When you write a function that can fail due to
   OOM. For lookup functions NULL is fine too for "not found".
 
   Be strict with this. When you write a function that can fail due to
index 3f862aa4c49f187e061c8fb82e0c297780ed3f6a..6e40bc6e9fd973f250f46f7692bba445dfc35bf9 100644 (file)
@@ -1574,7 +1574,7 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns, bool reload_su
 
         /* Note that this is called for all low-level state changes,
          * even if they might map to the same high-level
 
         /* Note that this is called for all low-level state changes,
          * even if they might map to the same high-level
-         * UnitActiveState! That means that ns == os is OK an expected
+         * UnitActiveState! That means that ns == os is an expected
          * behavior here. For example: if a mount point is remounted
          * this function will be called too! */
 
          * behavior here. For example: if a mount point is remounted
          * this function will be called too! */
 
@@ -1597,7 +1597,7 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns, bool reload_su
                         u->active_exit_timestamp = ts;
         }
 
                         u->active_exit_timestamp = ts;
         }
 
-        /* Keep track of failed of units */
+        /* Keep track of failed units */
         if (ns == UNIT_FAILED && os != UNIT_FAILED)
                 set_put(u->manager->failed_units, u);
         else if (os == UNIT_FAILED && ns != UNIT_FAILED)
         if (ns == UNIT_FAILED && os != UNIT_FAILED)
                 set_put(u->manager->failed_units, u);
         else if (os == UNIT_FAILED && ns != UNIT_FAILED)
@@ -1722,7 +1722,7 @@ void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns, bool reload_su
         if (UNIT_IS_ACTIVE_OR_RELOADING(ns)) {
 
                 if (unit_has_name(u, SPECIAL_DBUS_SERVICE))
         if (UNIT_IS_ACTIVE_OR_RELOADING(ns)) {
 
                 if (unit_has_name(u, SPECIAL_DBUS_SERVICE))
-                        /* The bus just might have become available,
+                        /* The bus might have just become available,
                          * hence try to connect to it, if we aren't
                          * yet connected. */
                         bus_init(m, true);
                          * hence try to connect to it, if we aren't
                          * yet connected. */
                         bus_init(m, true);
index 0b8e35d693c7856ef724b2b49fffd8b45eae80ed..c6038c63bfaa77d534e86de38a83d3de7ca354ed 100644 (file)
@@ -124,7 +124,7 @@ static bool all_configured(Manager *m) {
 
                 r = sd_rtnl_message_new_link(m->rtnl, &message, RTM_GETLINK, 0);
                 if (r < 0) {
 
                 r = sd_rtnl_message_new_link(m->rtnl, &message, RTM_GETLINK, 0);
                 if (r < 0) {
-                        log_warning("colud not create GETLINK message: %s", strerror(-r));
+                        log_warning("could not create GETLINK message: %s", strerror(-r));
                         return false;
                 }
 
                         return false;
                 }