Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2017-04-24 07:49:21 +0300
committerChristopher Haster <chaster@utexas.edu>2017-04-24 07:58:43 +0300
commitb55719bab156e66908ce86e8525b5eea15bec7da (patch)
tree0ccedb1a977e09f40d9dacd97af92a7576553bf6 /lfs_util.c
parent0406442253dcb6b813e6ff9a1659bd418fd0fe96 (diff)
Adopted more conventional buffer parameter ordering
Adopted buffer followed by size. The other order was original chosen due to some other functions with a more complicated parameter list. This convention is important, as the bd api is one of the main apis facing porting efforts.
Diffstat (limited to 'lfs_util.c')
-rw-r--r--lfs_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lfs_util.c b/lfs_util.c
index 69faa2b..2a8cff9 100644
--- a/lfs_util.c
+++ b/lfs_util.c
@@ -7,7 +7,7 @@
#include "lfs_util.h"
-uint32_t lfs_crc(uint32_t crc, size_t size, const void *buffer) {
+uint32_t lfs_crc(uint32_t crc, const void *buffer, size_t size) {
static const uint32_t rtable[16] = {
0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac,
0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c,