aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/mainloop.c5
-rw-r--r--apps/mainloop.h5
-rw-r--r--apps/sympathy.c41
-rw-r--r--apps/usage.c7
4 files changed, 37 insertions, 21 deletions
diff --git a/apps/mainloop.c b/apps/mainloop.c
index 146ebdd..e9c299c 100644
--- a/apps/mainloop.c
+++ b/apps/mainloop.c
@@ -11,6 +11,9 @@ static char rcsid[] =
/*
* $Log$
+ * Revision 1.17 2008/02/27 09:42:53 james
+ * *** empty log message ***
+ *
* Revision 1.16 2008/02/27 09:42:21 james
* *** empty log message ***
*
@@ -400,7 +403,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, CRT_Pos *size )
+ ANSI * ansi, Log * log, int nhistory, CRT_Pos * size)
{
fd_set rfds, wfds;
Context c = { 0 };
diff --git a/apps/mainloop.h b/apps/mainloop.h
index cea139e..df32f25 100644
--- a/apps/mainloop.h
+++ b/apps/mainloop.h
@@ -12,6 +12,9 @@
/*
* $Log$
+ * Revision 1.5 2008/02/27 09:42:53 james
+ * *** empty log message ***
+ *
* Revision 1.4 2008/02/27 09:42:21 james
* *** empty log message ***
*
@@ -33,6 +36,6 @@
extern void
mainloop (TTY * tty, Socket * server_socket, Socket * client_socket, ANSI * a,
- Log * log, int nhistory, CRT_Pos *size);
+ Log * log, int nhistory, CRT_Pos * size);
#endif /* __MAINLOOP_H__ */
diff --git a/apps/sympathy.c b/apps/sympathy.c
index e93c930..29c3280 100644
--- a/apps/sympathy.c
+++ b/apps/sympathy.c
@@ -11,6 +11,9 @@ static char rcsid[] =
/*
* $Log$
+ * Revision 1.18 2008/02/27 09:42:53 james
+ * *** empty log message ***
+ *
* Revision 1.17 2008/02/27 09:42:21 james
* *** empty log message ***
*
@@ -248,7 +251,7 @@ main (int argc, char *argv[])
int c;
extern char *optarg;
extern int optind, opterr, optopt;
- CRT_Pos size={VT102_COLS_80,VT102_ROWS};
+ CRT_Pos size = { VT102_COLS_80, VT102_ROWS };
int oflags[128];
char *oargs[128];
@@ -316,13 +319,15 @@ main (int argc, char *argv[])
sum += oflags['v'];
if (sum != 1)
- fatal_moan ("specifiy exactly one of ( -c and or -s ), -t, -r, -l and -v");
+ fatal_moan
+ ("specifiy exactly one of ( -c and or -s ), -t, -r, -l and -v");
}
- if (oflags['v']) {
- fprintf("Version: %s\n",libsympathy_version());
- return 0;
- }
+ if (oflags['v'])
+ {
+ fprintf ("Version: %s\n", libsympathy_version ());
+ return 0;
+ }
if (oflags['l'])
return list_sockets ();
@@ -428,22 +433,24 @@ main (int argc, char *argv[])
if (oflags['w'])
{
- char buf[128],*ptr;
- strcpy(buf,oargs['w']);
- ptr=index(buf,'x');
- if (ptr) {
- *ptr=0;
- ptr++;
- size.y=safe_atoi(ptr);
- }
- size.x=safe_atoi(buf);
+ char buf[128], *ptr;
+ strcpy (buf, oargs['w']);
+ ptr = index (buf, 'x');
+ if (ptr)
+ {
+ *ptr = 0;
+ ptr++;
+ size.y = safe_atoi (ptr);
+ }
+ size.x = safe_atoi (buf);
if ((size.x > VT102_MAX_COLS) || (size.x < 1))
fatal_moan ("-w requires a width between 1 and %d\n", VT102_MAX_COLS);
if ((size.y > VT102_ROWS) || (size.y < 1))
- fatal_moan ("-w requires a height between 1 and %d\n", VT102_MAX_COLS);
-
+ fatal_moan ("-w requires a height between 1 and %d\n",
+ VT102_MAX_COLS);
+
}
if (oflags['s'] && !oflags['F'])
diff --git a/apps/usage.c b/apps/usage.c
index 598ccb7..d86294e 100644
--- a/apps/usage.c
+++ b/apps/usage.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.13 2008/02/27 09:42:53 james
+ * *** empty log message ***
+ *
* Revision 1.12 2008/02/27 09:42:21 james
* *** empty log message ***
*
@@ -79,8 +82,8 @@ usage (void)
" -r id client mode: connect to server mode process on socket\n"
" ~/.sympathy/id\n"
" -l or -ls list active sockets in ~/.sympathy\n"
- " -v show version\n"
- " -h show help\n"
+ " -v show version\n"
+ " -h show help\n"
"\n"
"Options:\n"
" -K lock the serial device. By default sympathy checks that no\n"