]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: whitespace/spelling fix
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 11 Sep 2018 14:55:56 +0000 (16:55 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 11 Sep 2018 14:55:56 +0000 (16:55 +0200)
Signed-off-by: David Lamparter <equinox@diac24.net>
lib/libfrr.c

index 115c70f7c9981cc61560e00a38773d426c82b62b..61f5fa70816981987a611550a4a08d33c152321e 100644 (file)
@@ -266,8 +266,8 @@ static void frr_guard_daemon(void)
 {
        int fd;
        struct flock lock;
-
        const char *path = di->pid_file;
+
        fd = open(path, O_RDWR);
        if (fd != -1) {
                memset(&lock, 0, sizeof(lock));
@@ -280,7 +280,7 @@ static void frr_guard_daemon(void)
                        exit(1);
                } else if (lock.l_type == F_WRLCK) {
                        flog_err_sys(LIB_ERR_SYSTEM_CALL,
-                               "Process %d has a write lock on file %s already! Error : ( %s)",
+                               "Process %d has a write lock on file %s already! Error: (%s)",
                                lock.l_pid, path, safe_strerror(errno));
                        exit(1);
                }
@@ -294,7 +294,6 @@ void frr_preinit(struct frr_daemon_info *daemon, int argc, char **argv)
 
        /* basename(), opencoded. */
        char *p = strrchr(argv[0], '/');
-
        di->progname = p ? p + 1 : argv[0];
 
        umask(0027);