aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sympathy.c
diff options
context:
space:
mode:
authorjames <>2008-02-27 09:43:27 +0000
committerjames <>2008-02-27 09:43:27 +0000
commit5fd44c11631c66cff497fadd9bbc81b77c7509f7 (patch)
tree8af379c5d2c769d9a2c20f0d372e9059e1a44192 /apps/sympathy.c
parentd6c2a27d3304842fab285a4217518046b57b771b (diff)
downloadsympathy-5fd44c11631c66cff497fadd9bbc81b77c7509f7.tar.gz
sympathy-5fd44c11631c66cff497fadd9bbc81b77c7509f7.tar.bz2
sympathy-5fd44c11631c66cff497fadd9bbc81b77c7509f7.zip
*** empty log message ***
Diffstat (limited to 'apps/sympathy.c')
-rw-r--r--apps/sympathy.c41
1 files changed, 24 insertions, 17 deletions
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'])