summaryrefslogtreecommitdiff
path: root/ham/yaesu/patches/patch-ad
blob: f5782774c80f66ef097f711716956f063129609a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$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;