diff options
author | james <> | 2008-03-12 01:30:23 +0000 |
---|---|---|
committer | james <> | 2008-03-12 01:30:23 +0000 |
commit | 236863f163db6a700db2d2ea780688f20c00d316 (patch) | |
tree | 57ece731d14a011e60dd934f00f33157b053321a /apps | |
parent | 5bffe5e4528e109b346f6dd9128176df912ff4e8 (diff) | |
download | sympathy-236863f163db6a700db2d2ea780688f20c00d316.tar.gz sympathy-236863f163db6a700db2d2ea780688f20c00d316.tar.bz2 sympathy-236863f163db6a700db2d2ea780688f20c00d316.zip |
*** empty log message ***
Diffstat (limited to 'apps')
-rw-r--r-- | apps/sympathy.c | 13 | ||||
-rw-r--r-- | apps/usage.c | 9 |
2 files changed, 14 insertions, 8 deletions
diff --git a/apps/sympathy.c b/apps/sympathy.c index b19cb94..5cb7e16 100644 --- a/apps/sympathy.c +++ b/apps/sympathy.c @@ -11,6 +11,9 @@ static char rcsid[] = /* * $Log$ + * Revision 1.44 2008/03/12 01:30:23 james + * *** empty log message *** + * * Revision 1.43 2008/03/12 01:26:56 james * *** empty log message *** * @@ -720,11 +723,11 @@ main (int argc, char *argv[]) } if (oflags['p']) { - if (optind <argc) { - ctx->t = ptty_open (argv[optind], &argv[optind], &size); - } else { - ctx->t = ptty_open (NULL, NULL, &size); - } + if (optind < argc) { + ctx->t = ptty_open (argv[optind], &argv[optind], &size); + } else { + ctx->t = ptty_open (NULL, NULL, &size); + } if (!ctx->t) fatal_moan ("unable to open a ptty"); diff --git a/apps/usage.c b/apps/usage.c index 54956cf..2f9667b 100644 --- a/apps/usage.c +++ b/apps/usage.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.24 2008/03/12 01:30:23 james + * *** empty log message *** + * * Revision 1.23 2008/03/12 01:26:56 james * *** empty log message *** * @@ -91,13 +94,13 @@ usage (void) fprintf (stderr, "Usage:\n" "sympathy -t [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-w WxH]\n" " [-F] [-P pidfile] [-u] [-N]\n" - " [pty program] [pty program args]\n" + " [pty program] [pty program args]\n" "sympathy -s [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-w WxH]\n" " [-F] [-P pidfile] [-n hlines] [-k skt]\n" - " [pty program] [pty program args]\n" + " [pty program] [pty program args]\n" "sympathy [-s -c] [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-w WxH]\n" " [-F] [-P pidfile] [-u] [-N] [-n hlines] [-k skt]\n" - " [pty program] [pty program args]\n" + " [pty program] [pty program args]\n" "sympathy -c [-H] [-I string ] [-u] [-N] -k skt\n" "sympathy -r id [-H] [-I string ] [-u] [-N]\n" "sympathy {-l|-ls}\n" |