1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

[qs_parse] i was unused

This commit is contained in:
Witold Filipczyk 2023-11-17 17:22:00 +01:00
parent 58b0b39200
commit 25a859090a

View File

@ -11,10 +11,9 @@
int qs_strncmp(const char * s, char * qs, size_t n) int qs_strncmp(const char * s, char * qs, size_t n)
{ {
int i=0;
unsigned char u1, u2, unyb, lnyb; unsigned char u1, u2, unyb, lnyb;
while(n-- > 0) while (n-- > 0)
{ {
u1 = (unsigned char) *s++; u1 = (unsigned char) *s++;
u2 = (unsigned char) *qs++; u2 = (unsigned char) *qs++;
@ -48,7 +47,6 @@ int qs_strncmp(const char * s, char * qs, size_t n)
return u1 - u2; return u1 - u2;
if ( u1 == '\0' ) if ( u1 == '\0' )
return 0; return 0;
i++;
} }
if ( ISQSCHR(*qs) ) if ( ISQSCHR(*qs) )
return -1; return -1;