summaryrefslogtreecommitdiff
path: root/crc24q.h
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2008-08-03 16:42:57 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2008-08-03 16:42:57 +0000
commitf5e46a580df6fbf49f804d9b32c61abdfe4cf898 (patch)
treefd30dcc21493a7ddb14b648303167381308f6cd7 /crc24q.h
parent3ca39fe6c88d372412a6f1812568c42f4abe3ff9 (diff)
downloadgpsd-f5e46a580df6fbf49f804d9b32c61abdfe4cf898.tar.gz
Unify the header protection macro style a bit.
Headers likely to be private to gpsd are prefixed with _GPSD_, reusable ones like crc24q.h don't get the _GPSD_ prefix. Protection macro goes right up near the top of the file, right after the SVN id, and it's closure is the last line of the file.
Diffstat (limited to 'crc24q.h')
-rw-r--r--crc24q.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crc24q.h b/crc24q.h
index 68db03ec..580221f3 100644
--- a/crc24q.h
+++ b/crc24q.h
@@ -1,3 +1,7 @@
+/* $Id$ */
+#ifndef _CRC24Q_H_
+#define _CRC24Q_H_
+
/* Interface for CRC-24Q cyclic redundancy chercksum code */
extern void crc24q_sign(unsigned char *data, int len);
@@ -5,3 +9,4 @@ extern void crc24q_sign(unsigned char *data, int len);
extern bool crc24q_check(unsigned char *data, int len);
extern unsigned crc24q_hash(unsigned char *data, int len);
+#endif /* _CRC24Q_H_ */