aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames <>2010-07-16 11:04:10 +0000
committerjames <>2010-07-16 11:04:10 +0000
commite2bab1cd60f51ad68929cf8a97ef127d0dd83a80 (patch)
treef819dc91c5de1324410542bd01baffb3fb6f02f9
parent9d0c0a33e96503e84f804fbcad8840162a4bf2ac (diff)
downloadsympathy-e2bab1cd60f51ad68929cf8a97ef127d0dd83a80.tar.gz
sympathy-e2bab1cd60f51ad68929cf8a97ef127d0dd83a80.tar.bz2
sympathy-e2bab1cd60f51ad68929cf8a97ef127d0dd83a80.zip
ignore tedious return values
-rw-r--r--apps/sympathy.c15
-rw-r--r--src/lockfile.c6
-rw-r--r--src/log.c7
-rw-r--r--src/rotate.c7
4 files changed, 27 insertions, 8 deletions
diff --git a/apps/sympathy.c b/apps/sympathy.c
index 97a0e24..dc79ed0 100644
--- a/apps/sympathy.c
+++ b/apps/sympathy.c
@@ -11,6 +11,9 @@ static char rcsid[] =
/*
* $Log$
+ * Revision 1.51 2010/07/16 11:04:10 james
+ * ignore tedious return values
+ *
* Revision 1.50 2008/05/09 12:56:28 staffcvs
* *** empty log message ***
*
@@ -664,7 +667,8 @@ main (int argc, char *argv[])
if (oflags['s'] && oflags['c'])
{
cs++;
- pipe (cs_pipe);
+ int result;
+ result = pipe (cs_pipe);
switch (pid = fork ())
{
@@ -764,7 +768,8 @@ main (int argc, char *argv[])
if (oflags['s'] && !oflags['F'])
{
/* nochdir incase socket is relative path, unlink then will fail */
- daemon (1, 0);
+ int fish;
+ fish = daemon (1, 0);
}
@@ -794,7 +799,8 @@ main (int argc, char *argv[])
{
pid = getpid ();
- write (cs_pipe[1], &pid, sizeof (pid));
+ int fish;
+ fish = write (cs_pipe[1], &pid, sizeof (pid));
close (cs_pipe[1]);
}
@@ -857,7 +863,8 @@ main (int argc, char *argv[])
strcat (search_string, ptr);
fd = open ("/proc/cmdline", O_RDONLY);
- read (fd, kernel_cmdline, sizeof (kernel_cmdline));
+ int fish;
+ fish = read (fd, kernel_cmdline, sizeof (kernel_cmdline));
close (fd);
kernel_cmdline[sizeof (kernel_cmdline) - 1] = 0;
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);
}