21 lines
534 B
Plaintext
21 lines
534 B
Plaintext
$OpenBSD: patch-ttysrv_c,v 1.1 2002/02/20 21:17:52 naddy Exp $
|
|
--- ttysrv.c.orig Wed Feb 20 22:06:46 2002
|
|
+++ ttysrv.c Wed Feb 20 22:07:43 2002
|
|
@@ -143,13 +143,13 @@ main(argc, argv)
|
|
int argc;
|
|
char *argv[];
|
|
{
|
|
- int i;
|
|
- char ch, *msg;
|
|
+ int ch, i;
|
|
+ char *msg;
|
|
|
|
gethostname(Hostname, sizeof Hostname);
|
|
ProgName = argv[0];
|
|
|
|
- while ((ch = getopt(argc, argv, "o:s:r:t:l:b:p:w:x:i:")) != EOF) {
|
|
+ while ((ch = getopt(argc, argv, "o:s:r:t:l:b:p:w:x:i:")) != -1) {
|
|
switch (ch) {
|
|
case 'o':
|
|
msg = handle_option(optarg);
|