aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lockfile.c6
-rw-r--r--src/log.c7
-rw-r--r--src/rotate.c7
3 files changed, 16 insertions, 4 deletions
diff --git a/src/lockfile.c b/src/lockfile.c
index 570152e..1a77815 100644
--- a/src/lockfile.c
+++ b/src/lockfile.c
@@ -11,6 +11,9 @@ static char rcsid[] =
/*
* $Log$
+ * Revision 1.17 2010/07/16 11:04:10 james
+ * ignore tedious return values
+ *
* Revision 1.16 2008/05/09 12:56:11 james
* *** empty log message ***
*
@@ -203,7 +206,8 @@ lockfile_make (char *name)
return -1;
}
- write (fd, buf, i);
+ int result;
+ result = write (fd, buf, i);
fchmod (fd, 044);
#if 0
if (chown_uucp (fd)) {
diff --git a/src/log.c b/src/log.c
index 92d1b77..19e7c81 100644
--- a/src/log.c
+++ b/src/log.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.15 2010/07/16 11:04:10 james
+ * ignore tedious return values
+ *
* Revision 1.14 2008/03/11 17:56:04 james
* *** empty log message ***
*
@@ -151,8 +154,8 @@ flog_log (Log * _l, char *buf)
t = tv.tv_sec;
tm = localtime (&t);
- fprintf (l->fp, "%s %2d %02d:%02d:%02d.%06d ", months[tm->tm_mon],
- tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, tv.tv_usec);
+ fprintf (l->fp, "%s %2d %02d:%02d:%02d ", months[tm->tm_mon],
+ tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
fputs (buf, l->fp);
fputc ('\n', l->fp);
diff --git a/src/rotate.c b/src/rotate.c
index fae79f4..bd4f040 100644
--- a/src/rotate.c
+++ b/src/rotate.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.11 2010/07/16 11:04:10 james
+ * ignore tedious return values
+ *
* Revision 1.10 2008/03/07 13:16:02 james
* *** empty log message ***
*
@@ -60,7 +63,9 @@ rotate_gzip (char *file)
return;
}
- daemon (1, 0);
+ int result;
+
+ result = daemon (1, 0);
execlp ("gzip", "gzip", file, (char *) 0);
_exit (-1);
}