diff options
author | james <> | 2010-07-16 11:04:10 +0000 |
---|---|---|
committer | james <> | 2010-07-16 11:04:10 +0000 |
commit | e2bab1cd60f51ad68929cf8a97ef127d0dd83a80 (patch) | |
tree | f819dc91c5de1324410542bd01baffb3fb6f02f9 /apps | |
parent | 9d0c0a33e96503e84f804fbcad8840162a4bf2ac (diff) | |
download | sympathy-e2bab1cd60f51ad68929cf8a97ef127d0dd83a80.tar.gz sympathy-e2bab1cd60f51ad68929cf8a97ef127d0dd83a80.tar.bz2 sympathy-e2bab1cd60f51ad68929cf8a97ef127d0dd83a80.zip |
ignore tedious return values
Diffstat (limited to 'apps')
-rw-r--r-- | apps/sympathy.c | 15 |
1 files changed, 11 insertions, 4 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; |