$NetBSD: patch-ad,v 1.2 2002/05/10 00:18:21 hubertf Exp $ --- main.c.orig Sat Apr 13 21:07:41 2002 +++ main.c @@ -100,29 +100,29 @@ if (argc == 2) { switch(argv[1][0]) { case '0': - if ((fdSer = open("/dev/ttyS0", O_RDWR )) < 0) { - perror("open of /dev/ttyS0 failed!!!\n"); + if ((fdSer = open("/dev/tty00", O_RDWR )) < 0) { + perror("open of /dev/tty00 failed!!!\n"); exit(3); } break; case '1': - if ((fdSer = open("/dev/ttyS1", O_RDWR )) < 0) { - perror("open of /dev/ttyS1 failed!!!\n"); + if ((fdSer = open("/dev/tty01", O_RDWR )) < 0) { + perror("open of /dev/tty01 failed!!!\n"); exit(3); } break; case '2': - if ((fdSer = open("/dev/ttyS2", O_RDWR )) < 0) { - perror("open of /dev/ttyS2 failed"); + if ((fdSer = open("/dev/tty02", O_RDWR )) < 0) { + perror("open of /dev/tty02 failed"); exit(3); } break; case '3': - if ((fdSer = open("/dev/ttyS3", O_RDWR )) < 0) { - perror("open of /dev/ttyS3 failed"); + if ((fdSer = open("/dev/tty03", O_RDWR )) < 0) { + perror("open of /dev/tty03 failed"); exit(3); } break;