1
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-06-10 13:36:02 +02:00

Fix const comparison Werror

This commit is contained in:
Joe Jenne 2020-10-29 22:54:27 +00:00 committed by Drew DeVault
parent 75087ce65f
commit 514cb37301

View File

@ -212,7 +212,7 @@ gemini_request(const char *url, struct gemini_options *options,
char *endptr;
resp->status = (enum gemini_status)strtol(buf, &endptr, 10);
if (*endptr != ' ' || resp->status < 10 || resp->status >= 70) {
if (*endptr != ' ' || resp->status < 10 || (int)resp->status >= 70) {
fprintf(stderr, "invalid status\n");
res = GEMINI_ERR_PROTOCOL;
goto cleanup;