kcgi_strerror() takes an enum kcgi_err parameter, not a boolean expression
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 2f418b3..6eac9e3 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -274,21 +274,21 @@ gw_kcgi_error(enum kcgi_err kerr)
if (kerr == KCGI_ENOMEM)
return got_error_set_errno(ENOMEM,
- kcgi_strerror(kerr != KCGI_OK));
+ kcgi_strerror(kerr));
if (kerr == KCGI_ENFILE)
return got_error_set_errno(ENFILE,
- kcgi_strerror(kerr != KCGI_OK));
+ kcgi_strerror(kerr));
if (kerr == KCGI_EAGAIN)
return got_error_set_errno(EAGAIN,
- kcgi_strerror(kerr != KCGI_OK));
+ kcgi_strerror(kerr));
if (kerr == KCGI_FORM)
return got_error_msg(GOT_ERR_IO,
- kcgi_strerror(kerr != KCGI_OK));
+ kcgi_strerror(kerr));
- return got_error_from_errno(kcgi_strerror(kerr != KCGI_OK));
+ return got_error_from_errno(kcgi_strerror(kerr));
}
static const struct got_error *