Mapper, ...: use memcmp() instead of strncmp() where appropriate

Micro-optimization.
This commit is contained in:
Max Kellermann
2013-10-14 22:00:21 +02:00
parent b915e43391
commit 6fd481df97
7 changed files with 11 additions and 11 deletions

View File

@@ -175,7 +175,7 @@ static int handle_mapkey(void *ctx, const unsigned char* stringval,
data->key = Other;
for (i = 0; i < Other; ++i) {
if (strncmp((const char *)stringval, key_str[i], stringlen) == 0) {
if (memcmp((const char *)stringval, key_str[i], stringlen) == 0) {
data->key = i;
break;
}