summaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/crc16.h
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2014-06-16 10:13:40 +0200
committerSylvain Munaut <tnt@246tNt.com>2014-06-16 10:17:27 +0200
commit12ba778afdb797575e05284decd34cf2c27e3647 (patch)
tree8e98b7859c8866d706af877cd9edac3e1db5a09f /include/osmocom/core/crc16.h
parentb0a3c2f1de73cb3acd70f7c93be8fc7e8925f31e (diff)
include: Switch to #pragma once pattern
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'include/osmocom/core/crc16.h')
-rw-r--r--include/osmocom/core/crc16.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/osmocom/core/crc16.h b/include/osmocom/core/crc16.h
index 0e524176..83b2e5f7 100644
--- a/include/osmocom/core/crc16.h
+++ b/include/osmocom/core/crc16.h
@@ -15,8 +15,7 @@
* Version 2. See the file COPYING for more details.
*/
-#ifndef __CRC16_H
-#define __CRC16_H
+#pragma once
#include <stdint.h>
@@ -30,5 +29,3 @@ static inline uint16_t osmo_crc16_byte(uint16_t crc, const uint8_t data)
{
return (crc >> 8) ^ osmo_crc16_table[(crc ^ data) & 0xff];
}
-
-#endif /* __CRC16_H */