aboutsummaryrefslogtreecommitdiffstats
path: root/apps/clients.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/clients.c')
-rw-r--r--apps/clients.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/apps/clients.c b/apps/clients.c
index 0dcd863..346439e 100644
--- a/apps/clients.c
+++ b/apps/clients.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.20 2008/03/07 13:56:39 james
+ * *** empty log message ***
+ *
* Revision 1.19 2008/03/07 13:16:02 james
* *** empty log message ***
*
@@ -78,15 +81,16 @@ static char rcsid[] = "$Id$";
#include "clients.h"
-void client_initialize(Client *c,Context *ctx)
+void
+client_initialize (Client * c, Context * ctx)
{
- send_history (ctx->h, c);
- send_vt102 (ctx->v, c);
- c->initialized=1;
+ send_history (ctx->h, c);
+ send_vt102 (ctx->v, c);
+ c->initialized = 1;
}
void
-client_execute_message (Client *client,IPC_Msg * m, Context * c)
+client_execute_message (Client * client, IPC_Msg * m, Context * c)
{
switch (m->hdr.type) {
case IPC_MSG_TYPE_NOOP:
@@ -124,7 +128,7 @@ client_execute_message (Client *client,IPC_Msg * m, Context * c)
vt102_reset (c);
break;
case IPC_MSG_TYPE_INITIALIZE:
- client_initialize(client,c);
+ client_initialize (client, c);
break;
default:
log_f (c->l, "<Unhandled message type %d>", m->hdr.type);
@@ -151,7 +155,7 @@ clients_new_client (Clients * cs, Socket * s, Context * ctx)
c = (Client *) xmalloc (sizeof (Client));
- c->initialized=0;
+ c->initialized = 0;
c->dead = 0;
c->s = s;
c->next = cs->head;
@@ -224,8 +228,8 @@ clients_post_select (Clients * cs, Context * ctx, fd_set * rfds,
}
if (c->s->msg) {
- client_execute_message (c,c->s->msg,ctx);
- socket_consume_msg (c->s);
+ client_execute_message (c, c->s->msg, ctx);
+ socket_consume_msg (c->s);
}
}