aboutsummaryrefslogtreecommitdiffstats
path: root/apps/clients.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/clients.c')
-rw-r--r--apps/clients.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/apps/clients.c b/apps/clients.c
index 0a38095..3fb294d 100644
--- a/apps/clients.c
+++ b/apps/clients.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.26 2012/06/22 10:22:24 james
+ * *** empty log message ***
+ *
* Revision 1.25 2008/05/09 12:35:57 james
* *** empty log message ***
*
@@ -95,6 +98,11 @@ static char rcsid[] = "$Id$";
#include <malloc.h>
#include "clients.h"
+static inline char *
+stop_wno_unused_on_rcsid (void)
+{
+ return rcsid;
+}
void
client_initialize (Client * c, Context * ctx)
@@ -199,7 +207,7 @@ clients_new_client (Clients * cs, Socket * s, Context * ctx)
void
clients_reap (Clients * cs, Context * ctx)
{
- Client **p, *c;
+ Client **p;
for (p = &cs->head; *p;)
@@ -302,11 +310,11 @@ send_status (Clients * cs, char *msg)
Client *c;
if (!msg)
- return;
+ return -1;
len = strlen (msg) + 1;
if (!len)
- return;
+ return -1;
if (len > IPC_MAX_BUF)
len = IPC_MAX_BUF;
@@ -335,7 +343,7 @@ send_output (Clients * cs, void *buf, int len)
Client *c;
if (!len)
- return;
+ return -1;
if (len > IPC_MAX_BUF)
len = IPC_MAX_BUF;