diff options
author | Roy Marples <roy@marples.name> | 2008-01-11 15:51:40 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-11 15:51:40 +0000 |
commit | abde759d5bf6028135667779297d30491f1f4688 (patch) | |
tree | 079a40a45ce9199933cc3c0367d671804289018f /src/rc/rc-logger.c | |
parent | fec312d4482e17328394f3e87b4ad28b1f062b7f (diff) |
Re-indent to a standard tw of 8.
Diffstat (limited to 'src/rc/rc-logger.c')
-rw-r--r-- | src/rc/rc-logger.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rc/rc-logger.c b/src/rc/rc-logger.c index 0c48e444..0d9c514c 100644 --- a/src/rc/rc-logger.c +++ b/src/rc/rc-logger.c @@ -96,7 +96,7 @@ static void write_log (int logfd, const char *buffer, size_t bytes) in_term = true; break; } - + if (! in_escape) { write (logfd, p++, 1); continue; @@ -159,7 +159,7 @@ void rc_logger_open (const char *level) eerrorx ("pipe: %s", strerror (errno)); for (i = 0; i < 2; i++) if ((s = fcntl (signal_pipe[i], F_GETFD, 0) == -1 || - fcntl (signal_pipe[i], F_SETFD, s | FD_CLOEXEC) == -1)) + fcntl (signal_pipe[i], F_SETFD, s | FD_CLOEXEC) == -1)) eerrorx ("fcntl: %s", strerror (errno)); tcgetattr (STDOUT_FILENO, &tt); @@ -213,7 +213,7 @@ void rc_logger_open (const char *level) if (logbuf_size - logbuf_len < bytes) { logbuf_size += BUFSIZ * 10; logbuf = xrealloc (logbuf, sizeof (char ) * - logbuf_size); + logbuf_size); } memcpy (logbuf + logbuf_len, buffer, bytes); @@ -242,7 +242,7 @@ void rc_logger_open (const char *level) /* Try and cat our new logfile to a more permament location and then * punt it */ system (MOVELOG); - + exit (0); default: setpgid (rc_logger_pid, 0); @@ -251,8 +251,8 @@ void rc_logger_open (const char *level) dup2 (slave_tty, STDOUT_FILENO); dup2 (slave_tty, STDERR_FILENO); if (slave_tty != STDIN_FILENO && - slave_tty != STDOUT_FILENO && - slave_tty != STDERR_FILENO) + slave_tty != STDOUT_FILENO && + slave_tty != STDERR_FILENO) close (slave_tty); close (signal_pipe[0]); signal_pipe[0] = -1; |