diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-09-13 19:38:57 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-09-13 19:38:57 +0000 |
| commit | 1c50c1c0d683ebfa53c1607c71b8d26547e8f218 (patch) | |
| tree | 0dbb03af253cdcb0abeacaf6a860a4c7600359c5 /lib/libfrr.c | |
| parent | 450971aa994e68f7c62c4d45065223d5cfc4a22f (diff) | |
*: style for EC replacements
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/libfrr.c')
| -rw-r--r-- | lib/libfrr.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/libfrr.c b/lib/libfrr.c index 2ec9f66fee..69e6882617 100644 --- a/lib/libfrr.c +++ b/lib/libfrr.c @@ -274,12 +274,14 @@ static void frr_guard_daemon(void) lock.l_type = F_WRLCK; lock.l_whence = SEEK_SET; if (fcntl(fd, F_GETLK, &lock) < 0) { - flog_err_sys(EC_LIB_SYSTEM_CALL, + flog_err_sys( + EC_LIB_SYSTEM_CALL, "Could not do F_GETLK pid_file %s (%s), exiting", path, safe_strerror(errno)); exit(1); } else if (lock.l_type == F_WRLCK) { - flog_err_sys(EC_LIB_SYSTEM_CALL, + flog_err_sys( + EC_LIB_SYSTEM_CALL, "Process %d has a write lock on file %s already! Error: (%s)", lock.l_pid, path, safe_strerror(errno)); exit(1); @@ -543,15 +545,15 @@ static void frr_mkdir(const char *path, bool strip) if (errno == EEXIST) return; - flog_err(EC_LIB_SYSTEM_CALL, "failed to mkdir \"%s\": %s", - path, strerror(errno)); + flog_err(EC_LIB_SYSTEM_CALL, "failed to mkdir \"%s\": %s", path, + strerror(errno)); return; } zprivs_get_ids(&ids); if (chown(path, ids.uid_normal, ids.gid_normal)) - flog_err(EC_LIB_SYSTEM_CALL, "failed to chown \"%s\": %s", - path, strerror(errno)); + flog_err(EC_LIB_SYSTEM_CALL, "failed to chown \"%s\": %s", path, + strerror(errno)); } static struct thread_master *master; |
