libevent: silence -Wconversion warnings.

This commit is contained in:
Todd C. Miller
2023-07-07 15:07:04 -06:00
parent 5768d374cc
commit c95423a8f9
9 changed files with 55 additions and 55 deletions

View File

@@ -155,7 +155,7 @@ compare(FILE *fp, const char *infile, struct json_container *jsonc)
if (line[len - 1] == '\n')
len--;
if (strncmp(line, cp, len) != 0) {
if (strncmp(line, cp, (size_t)len) != 0) {
fprintf(stderr, "%s: mismatch on line %u\n", infile, lineno);
fprintf(stderr, "expected: %s", line);
fprintf(stderr, "got : %.*s\n", (int)len, cp);