]> arthur.barton.de Git - netatalk.git/blobdiff - bin/megatron/updcrc.h
remove pre ansi declarations
[netatalk.git] / bin / megatron / updcrc.h
diff --git a/bin/megatron/updcrc.h b/bin/megatron/updcrc.h
new file mode 100644 (file)
index 0000000..0b6039e
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * $Id: updcrc.h,v 1.1 2009-10-13 22:55:36 didg Exp $
+ */
+
+#ifndef _UPDCRC_H
+#define _UPDCRC_H 1
+
+#define W      16      /* bits in CRC:16       16      16      */
+
+    /* data type that holds a W-bit unsigned integer */
+#if W <= 16
+#  define WTYPE        unsigned short
+#else /* W <= 16 */
+#  define WTYPE   u_int32_t
+#endif /* W <= 16 */
+
+WTYPE updcrc(WTYPE icrc, unsigned char *icp, int icnt);
+
+#endif /* _UPDCRC_H */