diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-09 03:19:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-09 03:19:53 +0000 |
commit | cd18833f3dc056e8dce4614edaada4d1e9cadaf8 (patch) | |
tree | 52efaa01dca51d35cc349d0e2fc96333f01a6508 /usr.bin/talk | |
parent | 2350800b95c7586362ecfea2732b205949806485 (diff) |
exit(-#) is wrong
Diffstat (limited to 'usr.bin/talk')
-rw-r--r-- | usr.bin/talk/get_names.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/talk/get_names.c b/usr.bin/talk/get_names.c index abed8c2eaa1..3c6c7ee3303 100644 --- a/usr.bin/talk/get_names.c +++ b/usr.bin/talk/get_names.c @@ -1,4 +1,4 @@ -/* $OpenBSD: get_names.c,v 1.7 2000/12/31 00:24:51 hugh Exp $ */ +/* $OpenBSD: get_names.c,v 1.8 2001/03/09 03:19:52 deraadt Exp $ */ /* $NetBSD: get_names.c,v 1.4 1994/12/09 02:14:16 jtc Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)get_names.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: get_names.c,v 1.7 2000/12/31 00:24:51 hugh Exp $"; +static char rcsid[] = "$OpenBSD: get_names.c,v 1.8 2001/03/09 03:19:52 deraadt Exp $"; #endif /* not lint */ #include "talk.h" @@ -73,7 +73,7 @@ get_names(argc, argv) if ((argc < 2 ) || ('@' == argv[1][0])) { fprintf(stderr, "usage: talk user [ttyname]\n" " talk user@hostname [ttyname]\n"); - exit(-1); + exit(1); } if (!isatty(0)) errx(1, "standard input must be a tty, not a pipe or a file"); |