ext4_journal: forcibly flush data to disk when stop journalling.
[lwext4.git] / lwext4 / ext4_crc32c.c
index e6e6a68381e3064ba394ea88e9a0fb8124f2aeac..676fc464f7b823b864aff87badee8d5c61464e27 100644 (file)
@@ -36,8 +36,8 @@
  * @brief Crc32c routine. Taken from FreeBSD kernel.
  */
 
-#include <ext4_config.h>
-#include <ext4_crc32c.h>
+#include "ext4_config.h"
+#include "ext4_crc32c.h"
 
 /* */
 /* CRC LOOKUP TABLE */
@@ -112,12 +112,12 @@ static const uint32_t crc32Table[256] = {
 
 uint32_t ext4_crc32c(uint32_t crc, const void *buffer, uint32_t length)
 {
-    const uint8_t *p = buffer;
+       const uint8_t *p = buffer;
 
-    while (length--)
-        crc = crc32Table[(crc ^ *p++) & 0xff] ^ (crc >> 8);
+       while (length--)
+               crc = crc32Table[(crc ^ *p++) & 0xff] ^ (crc >> 8);
 
-    return crc;
+       return crc;
 }
 
 /**