Message ID | 20240415191454.3259243-1-denkenz@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [1/4] util: Remove confusing static keyword use | expand |
diff --git a/ell/util.h b/ell/util.h index 80b29b7bb6e3..b5d96754e8ae 100644 --- a/ell/util.h +++ b/ell/util.h @@ -349,8 +349,8 @@ inline __attribute__((always_inline)) void _l_close_cleanup(void *p) #define _L_IN_SET_CMP(val, type, cmp, ...) __extension__ ({ \ const type __v = (val); \ const typeof(__v) __elems[] = {__VA_ARGS__}; \ - unsigned int __i; \ - static const unsigned int __n = L_ARRAY_SIZE(__elems); \ + size_t __i; \ + size_t __n = L_ARRAY_SIZE(__elems); \ bool __r = false; \ for (__i = 0; __i < __n && !__r; __i++) \ __r = (cmp); \