[systemd-devel] [PATCH 5/6] core: correct spacing near eol in code comments

Torstein Husebø torstein at huseboe.net
Wed Dec 10 11:00:08 PST 2014


---
 src/core/device.c  | 3 ++-
 src/core/execute.c | 2 +-
 src/core/main.c    | 3 ++-
 src/core/manager.c | 2 +-
 src/core/unit.h    | 2 +-
 5 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/core/device.c b/src/core/device.c
index b254e45b33..c9b572a845 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -382,7 +382,8 @@ static int device_process_new_device(Manager *m, struct udev_device *dev) {
                  * same /dev/disk/by-label/xxx link because they have
                  * the same label. We want to make sure that the same
                  * device that won the symlink wins in systemd, so we
-                 * check the device node major/minor*/
+                 * check the device node major/minor
+                 */
                 if (stat(p, &st) >= 0)
                         if ((!S_ISBLK(st.st_mode) && !S_ISCHR(st.st_mode)) ||
                             st.st_rdev != udev_device_get_devnum(dev))
diff --git a/src/core/execute.c b/src/core/execute.c
index 955090c446..7da286ace8 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -130,7 +130,7 @@ static int shift_fds(int fds[], unsigned n_fds) {
                         fds[i] = nfd;
 
                         /* Hmm, the fd we wanted isn't free? Then
-                         * let's remember that and try again from here*/
+                         * let's remember that and try again from here */
                         if (nfd != i+3 && restart_from < 0)
                                 restart_from = i;
                 }
diff --git a/src/core/main.c b/src/core/main.c
index 140f2195ac..da4e94c472 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1543,7 +1543,8 @@ int main(int argc, char *argv[]) {
                  * managers and installers to provision a couple of
                  * files already. If the container manager wants to
                  * provision the machine ID itself it should pass
-                 * $container_uuid to PID 1.*/
+                 * $container_uuid to PID 1.
+                 */
 
                 empty_etc = access("/etc/machine-id", F_OK) < 0;
                 if (empty_etc)
diff --git a/src/core/manager.c b/src/core/manager.c
index 6382400af4..7653850cd4 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -440,7 +440,7 @@ static int manager_setup_signals(Manager *m) {
                         SIGRTMIN+26, /* systemd: set log target to journal-or-kmsg */
                         SIGRTMIN+27, /* systemd: set log target to console */
                         SIGRTMIN+28, /* systemd: set log target to kmsg */
-                        SIGRTMIN+29, /* systemd: set log target to syslog-or-kmsg (obsolete)*/
+                        SIGRTMIN+29, /* systemd: set log target to syslog-or-kmsg (obsolete) */
 
                         /* ... one free signal here SIGRTMIN+30 ... */
 #endif
diff --git a/src/core/unit.h b/src/core/unit.h
index 0e45229d7b..f6587ba5f0 100644
--- a/src/core/unit.h
+++ b/src/core/unit.h
@@ -284,7 +284,7 @@ struct UnitVTable {
          * that */
         size_t exec_runtime_offset;
 
-        /* The name of the configuration file section with the private settings of this unit*/
+        /* The name of the configuration file section with the private settings of this unit */
         const char *private_section;
 
         /* Config file sections this unit type understands, separated
-- 
2.2.0



More information about the systemd-devel mailing list