summaryrefslogtreecommitdiffstats
path: root/src/journal-remote
diff options
context:
space:
mode:
authorCristian Rodríguez <crodriguez@owncloud.com>2022-11-11 16:28:51 +0100
committerLuca Boccassi <bluca@debian.org>2022-11-12 01:40:16 +0100
commitaa70dd624bff6280ab6f2871f62d313bdb1e1bcc (patch)
tree15fab0020033ae5c916d248b285ce2f19036b6f9 /src/journal-remote
parentrepart: fix build (diff)
downloadsystemd-aa70dd624bff6280ab6f2871f62d313bdb1e1bcc.tar.xz
systemd-aa70dd624bff6280ab6f2871f62d313bdb1e1bcc.zip
journal-remote: code is of type enum MHD_RequestTerminationCode
Fixes gcc 13 -Wenum-int-mismatch which are enabled by default.
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/microhttpd-util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal-remote/microhttpd-util.h b/src/journal-remote/microhttpd-util.h
index 7e7d1b56b1..df18335469 100644
--- a/src/journal-remote/microhttpd-util.h
+++ b/src/journal-remote/microhttpd-util.h
@@ -64,11 +64,11 @@ void microhttpd_logger(void *arg, const char *fmt, va_list ap) _printf_(2, 0);
int mhd_respondf(struct MHD_Connection *connection,
int error,
- unsigned code,
+ enum MHD_RequestTerminationCode code,
const char *format, ...) _printf_(4,5);
int mhd_respond(struct MHD_Connection *connection,
- unsigned code,
+ enum MHD_RequestTerminationCode code,
const char *message);
int mhd_respond_oom(struct MHD_Connection *connection);