From: Tollef Fog Heen Date: Thu, 25 Aug 2011 18:26:23 +0000 (+0200) Subject: Prototype fixups X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c331ed0d56f77e4be2e9be6d4bae72173b42fb33;p=gant Prototype fixups --- diff --git a/antlib.c b/antlib.c index 3793bff..6db4e9d 100644 --- 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 294d091..c924b97 100644 --- 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); }