diff --git a/src/journal-remote/microhttpd-util.c b/src/journal-remote/microhttpd-util.c index e69f32f7ab..73b6ed4c94 100644 --- a/src/journal-remote/microhttpd-util.c +++ b/src/journal-remote/microhttpd-util.c @@ -68,9 +68,7 @@ int mhd_respondf_internal( assert(connection); assert(format); - if (error < 0) - error = -error; - errno = -error; + errno = ERRNO_VALUE(error); va_start(ap, format); r = vasprintf(&m, format, ap); va_end(ap);