diff options
author | james <> | 2008-02-27 09:47:14 +0000 |
---|---|---|
committer | james <> | 2008-02-27 09:47:14 +0000 |
commit | aa6ec2fe3ec97c448431055aac86628de8909a4a (patch) | |
tree | 36006328733362e374bde29f86c247180279bf4a /apps | |
parent | d47f96f27aa2713f46a472e9d1e8721f521b34e8 (diff) | |
download | sympathy-aa6ec2fe3ec97c448431055aac86628de8909a4a.tar.gz sympathy-aa6ec2fe3ec97c448431055aac86628de8909a4a.tar.bz2 sympathy-aa6ec2fe3ec97c448431055aac86628de8909a4a.zip |
*** empty log message ***
Diffstat (limited to 'apps')
-rw-r--r-- | apps/sympathy.c | 21 |
1 files changed, 11 insertions, 10 deletions
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; } |