]> err.no Git - gant/commitdiff
Prototype fixups
authorTollef Fog Heen <tfheen@err.no>
Thu, 25 Aug 2011 18:26:23 +0000 (20:26 +0200)
committerTollef Fog Heen <tfheen@err.no>
Thu, 25 Aug 2011 18:26:23 +0000 (20:26 +0200)
antlib.c
fr60.c

index 3793bff75a5ffdab1580fb80739ab8184c5033ea..6db4e9dff6db9f0cd1e5ff35e1fb8cc478de0f12 100644 (file)
--- a/antlib.c
+++ b/antlib.c
@@ -439,7 +439,7 @@ ANT_OpenRxScanMode(uchar chan)
 }
 
 uchar
-ANT_Initf(char *devname, ushort baud)
+ANT_Initf(char *devname)
 {
        struct termios tp;
 
@@ -468,12 +468,12 @@ ANT_Initf(char *devname, ushort baud)
 }
 
 uchar
-ANT_Init(uchar devno, ushort baud)
+ANT_Init(uchar devno)
 {
        char dev[40];
 
        sprintf(dev, "/dev/ttyUSB%d", devno);
-       return ANT_Initf(dev, devno);
+       return ANT_Initf(dev);
 }
 
 uchar
diff --git a/fr60.c b/fr60.c
index 294d09122ab738f60292ed90e2f15e73367fcb02..c924b97d73bbcab652a542f133301deb1eca0530 100644 (file)
--- a/fr60.c
+++ b/fr60.c
@@ -758,8 +758,8 @@ main(int ac, char *av[])
 
        if ((!passive && !authfile) || ac)
                usage();
-               
-       if (!ANT_Init(devnum, 0)) { // should be 115200 but doesn't fit into a short
+
+       if (!ANT_Init(devnum)) { // should be 115200 but doesn't fit into a short
                fprintf(stderr, "open dev %d failed\n", devnum);
                exit(1);
        }