From e2bab1cd60f51ad68929cf8a97ef127d0dd83a80 Mon Sep 17 00:00:00 2001 From: james <> Date: Fri, 16 Jul 2010 11:04:10 +0000 Subject: ignore tedious return values --- apps/sympathy.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'apps/sympathy.c') 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; -- cgit v1.2.3