openbsd-ports/sysutils/rtty/patches/patch-locbrok_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

17 lines
459 B
Plaintext

$OpenBSD: patch-locbrok_c,v 1.1 2002/05/08 18:42:10 millert Exp $
--- locbrok.c.orig Wed May 8 12:30:37 2002
+++ locbrok.c Wed May 8 12:30:37 2002
@@ -76,10 +76,10 @@ static reg_db *RegDB = NULL;
main(int argc, char *argv[]) {
struct servent *serv;
- char ch;
+ int ch;
ProgName = argv[0];
- while ((ch = getopt(argc, argv, "s:x:")) != EOF) {
+ while ((ch = getopt(argc, argv, "s:x:")) != -1) {
switch (ch) {
case 's':
Service = optarg;