You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.3 KiB
34 lines
1.3 KiB
2 days ago
|
From da0298596af24d1da92eb748b0a56065a9c041d9 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <crodriguez@owncloud.com>
|
||
|
Date: Fri, 11 Nov 2022 15:28:51 +0000
|
||
|
Subject: [PATCH] journal-remote: code is of type enum
|
||
|
MHD_RequestTerminationCode
|
||
|
|
||
|
Fixes gcc 13 -Wenum-int-mismatch which are enabled by default.
|
||
|
|
||
|
(cherry picked from commit aa70dd624bff6280ab6f2871f62d313bdb1e1bcc)
|
||
|
|
||
|
Related: RHEL-30372
|
||
|
---
|
||
|
src/journal-remote/microhttpd-util.h | 4 ++--
|
||
|
1 file 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);
|