diff options
Diffstat (limited to 'src/tet3/tccd/log.c')
-rw-r--r-- | src/tet3/tccd/log.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tet3/tccd/log.c b/src/tet3/tccd/log.c index 7fd6b472..2598b38e 100644 --- a/src/tet3/tccd/log.c +++ b/src/tet3/tccd/log.c @@ -96,7 +96,7 @@ void loginit() fatal(errno, "can't open log file", Logfile); /* allow anyone to read/write to the logfile */ - (void) CHMOD(Logfile, (mode_t)S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); + CHMOD(Logfile, (mode_t)S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); /* attach stderr to the logfile */ errno = 0; @@ -105,7 +105,7 @@ void loginit() fatal(errno, "can't reopen stderr as", Logfile); } - (void) fclose(fp); + fclose(fp); setbuf(lfp, buf); @@ -124,11 +124,11 @@ char *s1, *s2; fp = getlogfp(); - (void) fprintf(fp, "%s: %s", loghdr(), s1); + fprintf(fp, "%s: %s", loghdr(), s1); if (s2 && *s2) - (void) fprintf(fp, " %s", s2); - (void) putc('\n', fp); - (void) fflush(fp); + fprintf(fp, " %s", s2); + putc('\n', fp); + fflush(fp); } /* @@ -155,7 +155,7 @@ static char *loghdr() t = time((time_t *) 0); tp = localtime(&t); - (void) sprintf(header, "%.16s (%d) %d %s %d:%02d:%02d", + sprintf(header, "%.16s (%d) %d %s %d:%02d:%02d", tet_progname, tet_mypid, tp->tm_mday, month[tp->tm_mon], tp->tm_hour, tp->tm_min, tp->tm_sec); |