From a67dc94484cf9869793fc1861914b800a6559a74 Mon Sep 17 00:00:00 2001 From: amelia squires Date: Tue, 30 Sep 2025 18:10:02 -0500 Subject: fix indentation!!! --- src/hash/bsdchecksum.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/hash/bsdchecksum.c') diff --git a/src/hash/bsdchecksum.c b/src/hash/bsdchecksum.c index 18bae0c..4fb0b90 100644 --- a/src/hash/bsdchecksum.c +++ b/src/hash/bsdchecksum.c @@ -12,10 +12,10 @@ int bsdchecksum_free_l(lua_State* L){ void bsdchecksum_update(uint8_t* aa, size_t len, struct bsdchecksum_hash* hash){ for(int i = 0; i != len; i++){ - uint8_t a = aa[i]; - hash->check = (hash->check >> 1) + ((hash->check & 1) << 15); - hash->check += a; - hash->check &= 0xffff; + uint8_t a = aa[i]; + hash->check = (hash->check >> 1) + ((hash->check & 1) << 15); + hash->check += a; + hash->check &= 0xffff; } } @@ -46,7 +46,7 @@ int l_bsdchecksum(lua_State* L){ if(lua_gettop(L) == 0) return l_bsdchecksum_init(L); size_t len = 0; uint8_t* a = (uint8_t*)luaL_checklstring(L, 1, &len); - + char digest[16]; //uint16_t u = i_bsdchecksum(a, len); -- cgit v1.2.3