aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorjames <>2008-03-06 21:34:09 +0000
committerjames <>2008-03-06 21:34:09 +0000
commit3aaa25a4e02ff362ef6b057c597630bdbef5227b (patch)
treecccef46a7ddafa7912d0069c5477847982536fc8 /apps
parent63a3f74532632a7e07b71f805eb806b05b3f19e3 (diff)
downloadsympathy-3aaa25a4e02ff362ef6b057c597630bdbef5227b.tar.gz
sympathy-3aaa25a4e02ff362ef6b057c597630bdbef5227b.tar.bz2
sympathy-3aaa25a4e02ff362ef6b057c597630bdbef5227b.zip
*** empty log message ***
Diffstat (limited to 'apps')
-rw-r--r--apps/mainloop.c10
-rw-r--r--apps/sympathy.c27
-rw-r--r--apps/usage.c7
3 files changed, 29 insertions, 15 deletions
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<W<=132,\n"
" 0<H<24, default 80 by 24\n"
- " -N provide dumb terminal emulation on stdin/stdout instead of\n"
+ " -N provide dumb terminal emulation on stdin/stdout instead of\n"
" redering the display, for use with expect(1)\n"
" -I string inject string into terminal then quit (see man page\n"
- " for escapes\n");
+ " for escapes\n");
exit (1);