mirror of
				https://github.com/eledio-devices/thirdparty-littlefs.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	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:
		| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user