summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRALOVICH, Kristof <tade60@freemail.hu>2014-01-19 19:55:25 +0100
committerRALOVICH, Kristof <tade60@freemail.hu>2014-01-19 19:55:25 +0100
commit58c803fd5a25d3a6ec4ec194c7fc942842e2491d (patch)
tree36307898332aa1fdc21af0fdc079b699beb8f61b
parent9f56f0c2326b3b566080e5af9026d508ec639825 (diff)
gant: fix a bunch of warnings
-rw-r--r--src/gant/antdefs.h4
-rw-r--r--src/gant/antlib.c12
-rw-r--r--src/gant/gant.c10
3 files changed, 11 insertions, 15 deletions
diff --git a/src/gant/antdefs.h b/src/gant/antdefs.h
index 1112012..0b83447 100644
--- a/src/gant/antdefs.h
+++ b/src/gant/antdefs.h
@@ -1,5 +1,5 @@
-// copyright 2008-2009 paul@ant.sbrk.co.uk. released under GPLv3
-// vers 0.6t
+/* copyright 2008-2009 paul@ant.sbrk.co.uk. released under GPLv3 */
+/* vers 0.6t */
#ifndef __ANTDEFS_H__
#define __ANTDEFS_H__
diff --git a/src/gant/antlib.c b/src/gant/antlib.c
index 7d5b77a..26e880f 100644
--- a/src/gant/antlib.c
+++ b/src/gant/antlib.c
@@ -1,5 +1,5 @@
-// copyright 2008 paul@ant.sbrk.co.uk. released under GPLv3
-// vers 0.6t
+/* copyright 2008 paul@ant.sbrk.co.uk. released under GPLv3 */
+/* vers 0.6t */
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -13,14 +13,10 @@
#define __declspec(X)
#include "antdefs.h"
-//#include "antdefines.h"
-//#include "ANT_Interface.h"
-//#include "antmessage.h"
-//#include "anttypes.h"
#define S(e) do { if (-1 == (e)) {perror(#e); return 0;} } while(0)
-#define MAXMSG 30 // SYNC,LEN,MSG,data[9+],CHKSUM
+#define MAXMSG 30 /* SYNC,LEN,MSG,data[9+],CHKSUM */
#define MAXCHAN 32
#define BSIZE 8*10000
@@ -45,7 +41,7 @@ struct msg_queue {
uchar len;
};
-// send message over serial port
+/* send message over serial port */
uchar
msg_send(uchar mesg, uchar *inbuf, uchar len)
{
diff --git a/src/gant/gant.c b/src/gant/gant.c
index ed5e542..585be4d 100644
--- a/src/gant/gant.c
+++ b/src/gant/gant.c
@@ -1,6 +1,6 @@
-// copyright 2010 Klaus@Ethgen.de. released under GPLv3
-// copyright 2008-2009 paul@ant.sbrk.co.uk
-// copyright 2009-2009 Wali
+/* copyright 2010 Klaus@Ethgen.de. released under GPLv3 */
+/* copyright 2008-2009 paul@ant.sbrk.co.uk */
+/* copyright 2009-2009 Wali */
#include <stdio.h>
#include <sys/select.h>
#include <sys/time.h>
@@ -56,7 +56,7 @@ struct _lap {
int trigger;
};
-// all version numbering according ant agent for windows 2.2.1
+/* all version numbering according ant agent for windows 2.2.1 */
char *releasetime = "Apr 25 2010, 10:00:00";
uint majorrelease = 2;
uint minorrelease = 2;
@@ -76,7 +76,7 @@ int seenphase0 = 0;
int lastphase;
int sentack2;
int newfreq = 0;
-int period = 0x1000; // garmin specific broadcast period
+int period = 0x1000; /* garmin specific broadcast period */
int donebind = 0;
int sentgetv;
char *fname = "garmin";