From aa6ec2fe3ec97c448431055aac86628de8909a4a Mon Sep 17 00:00:00 2001 From: james <> Date: Wed, 27 Feb 2008 09:47:14 +0000 Subject: *** empty log message *** --- apps/sympathy.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'apps') diff --git a/apps/sympathy.c b/apps/sympathy.c index 29c3280..3ade5cd 100644 --- a/apps/sympathy.c +++ b/apps/sympathy.c @@ -11,6 +11,9 @@ static char rcsid[] = /* * $Log$ + * Revision 1.19 2008/02/27 09:47:05 james + * *** empty log message *** + * * Revision 1.18 2008/02/27 09:42:53 james * *** empty log message *** * @@ -301,15 +304,6 @@ main (int argc, char *argv[]) oflags['s'] = 0; - if (!oflags['s'] && !oflags['c'] && !oflags['t'] && !oflags['r'] - && !oflags['l']) - { - /*If no mode is specified behave like screen */ - oflags['s']++; - oflags['c']++; - } - - { int sum = 0; sum += oflags['t']; @@ -318,6 +312,12 @@ main (int argc, char *argv[]) sum += oflags['l']; sum += oflags['v']; + if (!sum) { + /*If no mode is specified behave like screen */ + oflags['s']++; + oflags['c']++; + } + if (sum != 1) fatal_moan ("specifiy exactly one of ( -c and or -s ), -t, -r, -l and -v"); @@ -325,7 +325,8 @@ main (int argc, char *argv[]) if (oflags['v']) { - fprintf ("Version: %s\n", libsympathy_version ()); + fprintf (stderr, "Version: %s\n", libsympathy_version ()); + fprintf (stderr, "Version: %s\n", rcsid); return 0; } -- cgit v1.2.3