Skip to content

Commit b26bf34

Browse files
authored
Merge pull request #1095 from DvdGiessen/lfs_crc
lfs_crc should be static if LFS_CRC is defined
2 parents 8ed63b2 + b823728 commit b26bf34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lfs_util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ static inline uint32_t lfs_tobe32(uint32_t a) {
231231

232232
// Calculate CRC-32 with polynomial = 0x04c11db7
233233
#ifdef LFS_CRC
234-
uint32_t lfs_crc(uint32_t crc, const void *buffer, size_t size) {
235-
return LFS_CRC(crc, buffer, size)
234+
static inline uint32_t lfs_crc(uint32_t crc, const void *buffer, size_t size) {
235+
return LFS_CRC(crc, buffer, size);
236236
}
237237
#else
238238
uint32_t lfs_crc(uint32_t crc, const void *buffer, size_t size);

0 commit comments

Comments
 (0)