Changed return type of CRC16 to uint16

This commit is contained in:
Derision
2013-04-28 18:57:08 +01:00
parent d2c7f23ec9
commit 022713996a
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
#include "crc32.h"
unsigned long CRC16(const unsigned char *buf, int size, int key)
uint16 CRC16(const unsigned char *buf, int size, int key)
{
// This is computed as the lowest 16 bits of an Ethernet CRC32 checksum
// where the key is prepended to the data in little endian order.
+2 -1
View File
@@ -1,6 +1,7 @@
#ifndef _CRC16_H
#define _CRC16_H
#include "types.h"
unsigned long CRC16(const unsigned char *buf, int size, int key);
uint16 CRC16(const unsigned char *buf, int size, int key);
#endif