diff options
Diffstat (limited to 'wsutil/crc16.h')
-rw-r--r-- | wsutil/crc16.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/wsutil/crc16.h b/wsutil/crc16.h index 09dde4b893..3529a1af6c 100644 --- a/wsutil/crc16.h +++ b/wsutil/crc16.h @@ -46,15 +46,13 @@ extern "C" { @param buf The buffer containing the data. @param len The number of bytes to include in the computation. @return The CRC16 CCITT checksum. */ -WS_DLL_PUBLIC -extern guint16 crc16_ccitt(const guint8 *buf, guint len); +WS_DLL_PUBLIC guint16 crc16_ccitt(const guint8 *buf, guint len); /** Compute CRC16 X.25 CCITT checksum of a buffer of data. @param buf The buffer containing the data. @param len The number of bytes to include in the computation. @return The CRC16 X.25 CCITT checksum. */ -WS_DLL_PUBLIC -extern guint16 crc16_x25_ccitt(const guint8 *buf, guint len); +WS_DLL_PUBLIC guint16 crc16_x25_ccitt(const guint8 *buf, guint len); /** Compute CRC16 CCITT checksum of a buffer of data. If computing the * checksum over multiple buffers and you want to feed the partial CRC16 @@ -63,8 +61,7 @@ extern guint16 crc16_x25_ccitt(const guint8 *buf, guint len); @param len The number of bytes to include in the computation. @param seed The seed to use. @return The CRC16 CCITT checksum (using the given seed). */ -WS_DLL_PUBLIC -extern guint16 crc16_ccitt_seed(const guint8 *buf, guint len, guint16 seed); +WS_DLL_PUBLIC guint16 crc16_ccitt_seed(const guint8 *buf, guint len, guint16 seed); /** Calculates a CRC16 checksum for the given buffer with the polynom * 0x5935 using a precompiled CRC table @@ -73,8 +70,7 @@ extern guint16 crc16_ccitt_seed(const guint8 *buf, guint len, guint16 seed); * @param seed The seed to use. * @return the CRC16 checksum for the buffer */ -WS_DLL_PUBLIC -extern guint16 crc16_0x5935(const guint8 *buf, guint32 len, guint16 seed); +WS_DLL_PUBLIC guint16 crc16_0x5935(const guint8 *buf, guint32 len, guint16 seed); #ifdef __cplusplus } |