openbsd-ports/sysutils/rtty/patches/patch-rtty_c
millert 28ef82dd9f Update port to rtty-4.0.shar.gz with patches fed back to Vixie.
Make default group dialer, not wheel, to match default OpenBSD
device permissions.
2002-05-08 18:42:10 +00:00

22 lines
508 B
Plaintext

$OpenBSD: patch-rtty_c,v 1.2 2002/05/08 18:42:10 millert Exp $
--- rtty.c.orig Wed May 8 12:30:37 2002
+++ rtty.c Wed May 8 12:30:37 2002
@@ -89,7 +89,7 @@ int Debug = 0;
int
main(int argc, char *argv[]) {
- char ch;
+ int ch;
ProgName = argv[0];
@@ -106,7 +106,7 @@ main(int argc, char *argv[]) {
TtyName = "/dev/null";
}
- while ((ch = getopt(argc, argv, "s:x:l:7r")) != EOF) {
+ while ((ch = getopt(argc, argv, "s:x:l:7r")) != -1) {
switch (ch) {
case 's':
ServSpec = optarg;