aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/mainloop.c5
-rw-r--r--apps/sympathy.c22
-rw-r--r--apps/usage.c6
3 files changed, 21 insertions, 12 deletions
diff --git a/apps/mainloop.c b/apps/mainloop.c
index 07290e1..d546ac5 100644
--- a/apps/mainloop.c
+++ b/apps/mainloop.c
@@ -11,6 +11,9 @@ static char rcsid[] =
/*
* $Log$
+ * Revision 1.15 2008/02/27 01:31:38 james
+ * *** empty log message ***
+ *
* Revision 1.14 2008/02/27 01:31:14 james
* *** empty log message ***
*
@@ -394,7 +397,7 @@ msg_from_server (ANSI * a, IPC_Msg * m, Context * c)
void
mainloop (TTY * tty, Socket * server_socket, Socket * client_socket,
- ANSI * ansi, Log * log, int nhistory,int width)
+ ANSI * ansi, Log * log, int nhistory, int width)
{
fd_set rfds, wfds;
Context c = { 0 };
diff --git a/apps/sympathy.c b/apps/sympathy.c
index 4a9f18a..a8dba28 100644
--- a/apps/sympathy.c
+++ b/apps/sympathy.c
@@ -11,6 +11,9 @@ static char rcsid[] =
/*
* $Log$
+ * Revision 1.16 2008/02/27 01:31:38 james
+ * *** empty log message ***
+ *
* Revision 1.15 2008/02/27 01:31:14 james
* *** empty log message ***
*
@@ -242,7 +245,7 @@ main (int argc, char *argv[])
int c;
extern char *optarg;
extern int optind, opterr, optopt;
- int width=VT102_COLS_80;
+ int width = VT102_COLS_80;
int oflags[128];
char *oargs[128];
@@ -259,7 +262,7 @@ main (int argc, char *argv[])
memset (oflags, 0, sizeof (oflags));
memset (oargs, 0, sizeof (oargs));
- while ((c = getopt (argc, argv, "w:utscr:lKHd:pb:fL:Fk:n:")) != EOF)
+ while ((c = getopt (argc, argv, "w:utscr:lKHd:pb:fL:Fk:n:")) != EOF)
{
switch (c)
{
@@ -392,7 +395,7 @@ main (int argc, char *argv[])
oflags['f'] = 0;
oflags['L'] = 0;
oflags['n'] = 0;
- oflags['w'] = 0;
+ oflags['w'] = 0;
if (server_socket)
{
socket_free_parent (server_socket);
@@ -415,11 +418,12 @@ main (int argc, char *argv[])
oflags['p']++;
}
- if (oflags['w']) {
- width=safe_atoi(oargs['w']);
- if ((width>VT102_MAX_COLS) || (width<1))
- fatal_moan("-w requires a width between 1 and %d\n",VT102_MAX_COLS);
- }
+ if (oflags['w'])
+ {
+ width = safe_atoi (oargs['w']);
+ if ((width > VT102_MAX_COLS) || (width < 1))
+ fatal_moan ("-w requires a width between 1 and %d\n", VT102_MAX_COLS);
+ }
if (oflags['s'] && !oflags['F'])
{
@@ -496,7 +500,7 @@ main (int argc, char *argv[])
}
}
- mainloop (tty, server_socket, client_socket, ansi, log, history,width);
+ mainloop (tty, server_socket, client_socket, ansi, log, history, width);
if (ansi)
{
diff --git a/apps/usage.c b/apps/usage.c
index 62061fd..cf79d6d 100644
--- a/apps/usage.c
+++ b/apps/usage.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.11 2008/02/27 01:31:38 james
+ * *** empty log message ***
+ *
* Revision 1.10 2008/02/27 01:31:14 james
* *** empty log message ***
*
@@ -96,8 +99,7 @@ usage (void)
" -n hlines the number of lines of history to store in the\n"
" server, that are replayed on connexion\n"
" -u don't emit utf-8 try to use ISO-2202 to the local terminal\n"
- " -w width start session with a screen of width width<=132\n"
- );
+ " -w width start session with a screen of width width<=132\n");
exit (1);