]> www.infradead.org Git - mtd-utils.git/commitdiff
mtd-utils: minor amendments in crc32.h
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 26 Apr 2009 05:04:16 +0000 (08:04 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 8 May 2009 16:07:26 +0000 (19:07 +0300)
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/src/crc32.h

index ee3145bc1597a05344c694d9bc3ba6639086a36f..c001fcf80f68967afd778ae9c665e3f61a92ef9e 100644 (file)
@@ -1,14 +1,12 @@
-#ifndef CRC32_H
-#define CRC32_H
+#ifndef __CRC32_H__
+#define __CRC32_H__
 
 #include <stdint.h>
 
 extern const uint32_t crc32_table[256];
 
-/* Return a 32-bit CRC of the contents of the buffer. */
-
-       static inline uint32_t
-crc32(uint32_t val, const void *ss, int len)
+/* Returns a 32-bit CRC of the contents of the buffer */
+static inline uint32_t crc32(uint32_t val, const void *ss, int len)
 {
        const unsigned char *s = ss;
        while (--len >= 0)