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.
This commit is contained in:
Christopher Haster
2017-04-23 23:49:21 -05:00
parent 0406442253
commit b55719bab1
6 changed files with 54 additions and 56 deletions

View File

@@ -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,