util: change n type to size_t in strneq

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1252>
This commit is contained in:
Kacper Piwiński 2025-06-29 06:38:52 +00:00
parent 2b22a0b4ba
commit cc3f0c783a

View file

@ -63,7 +63,7 @@ streq(const char *str1, const char *str2)
}
static inline bool
strneq(const char *str1, const char *str2, int n)
strneq(const char *str1, const char *str2, size_t n)
{
/* one NULL, one not NULL is always false */
if (str1 && str2)