From 3aaa25a4e02ff362ef6b057c597630bdbef5227b Mon Sep 17 00:00:00 2001 From: james <> Date: Thu, 6 Mar 2008 21:34:09 +0000 Subject: *** empty log message *** --- apps/mainloop.c | 10 +++++++--- apps/sympathy.c | 27 +++++++++++++++++---------- apps/usage.c | 7 +++++-- 3 files changed, 29 insertions(+), 15 deletions(-) (limited to 'apps') diff --git a/apps/mainloop.c b/apps/mainloop.c index 19c5759..a3697f3 100644 --- a/apps/mainloop.c +++ b/apps/mainloop.c @@ -11,6 +11,9 @@ static char rcsid[] = /* * $Log$ + * Revision 1.26 2008/03/06 21:34:09 james + * *** empty log message *** + * * Revision 1.25 2008/03/06 21:33:02 james * *** empty log message *** * @@ -551,18 +554,19 @@ mainloop (Context * c, ANSI * ansi, Socket * server_socket, /*any data from the server */ if (client_socket) { - int err=0; + int err = 0; if (socket_post_select (client_socket, &rfds, &wfds)) break; while (client_socket->msg && !err) { - err+=msg_from_server (ansi, client_socket->msg, c); + err += msg_from_server (ansi, client_socket->msg, c); socket_consume_msg (client_socket); } - if (err) break; + if (err) + break; } diff --git a/apps/sympathy.c b/apps/sympathy.c index 2a9b314..357f1df 100644 --- a/apps/sympathy.c +++ b/apps/sympathy.c @@ -11,6 +11,9 @@ static char rcsid[] = /* * $Log$ + * Revision 1.36 2008/03/06 21:34:09 james + * *** empty log message *** + * * Revision 1.35 2008/03/06 21:33:02 james * *** empty log message *** * @@ -279,7 +282,7 @@ mome (char *fmt, ...) Socket * -find_socket (char **retpath,char *fmt, ...) +find_socket (char **retpath, char *fmt, ...) { Socket *ret; char *path, *leaf, *h, **ptr; @@ -322,11 +325,14 @@ find_socket (char **retpath,char *fmt, ...) if (ret) { - if (retpath) { - *retpath=path; - } else { - free (path); - } + if (retpath) + { + *retpath = path; + } + else + { + free (path); + } free (leaf); return ret; } @@ -795,11 +801,12 @@ main (int argc, char *argv[]) if (safe_atoi (id) > 0) { - client_socket = find_socket (&oargs['k'],"%s%d", hostname, safe_atoi (id)); + client_socket = + find_socket (&oargs['k'], "%s%d", hostname, safe_atoi (id)); } else { - client_socket = find_socket (&oargs['k'],"%s", id); + client_socket = find_socket (&oargs['k'], "%s", id); } if (!client_socket) @@ -834,8 +841,8 @@ main (int argc, char *argv[]) ansi_new_from_terminal (terminal_open (0, 1), oflags['u'] ? 0 : 1); ansi->reset (ansi, NULL); - if (ansi->set_title) - ansi->set_title(ansi,oargs['k']); + if (ansi->set_title) + ansi->set_title (ansi, oargs['k']); } if (oflags['I']) { diff --git a/apps/usage.c b/apps/usage.c index b0a91d4..abad505 100644 --- a/apps/usage.c +++ b/apps/usage.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.21 2008/03/06 21:34:09 james + * *** empty log message *** + * * Revision 1.20 2008/03/06 17:21:41 james * *** empty log message *** * @@ -135,10 +138,10 @@ usage (void) " -u don't emit utf-8 try to use ISO-2202 to the local terminal\n" " -w W[xH] start session with a screen of size W by H. 0