aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sympathy.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/sympathy.c')
-rw-r--r--apps/sympathy.c15
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;