diff --git a/net-im/jabberd/files/patch-41884d9919 b/net-im/jabberd/files/patch-41884d9919 new file mode 100644 index 000000000000..dc3932eb0767 --- /dev/null +++ b/net-im/jabberd/files/patch-41884d9919 @@ -0,0 +1,53 @@ +diff --git a/util/log.c b/util/log.c +index edf3919..06835da 100644 +--- a/util/log.c ++++ util/log.c +@@ -223,12 +223,12 @@ void set_debug_flag(int v) + debug_flag = v; + } + +-int set_debug_log_from_config(config_t c) ++void set_debug_log_from_config(config_t c) + { + return set_debug_file(config_get_one(c, "log.debug", 0)); +-}; ++} + +-JABBERD2_API int set_debug_file(const char *filename) ++JABBERD2_API void set_debug_file(const char *filename) + { + // Close debug output file but not stderr + if (debug_log_target != 0 && +@@ -255,7 +255,7 @@ JABBERD2_API int set_debug_file(const char *filename) + // set stderr + debug_log_target = stderr; + } +-}; ++} + + #else /* DEBUG */ + void debug_log(const char *file, int line, const char *msgfmt, ...) +@@ -263,4 +263,7 @@ void debug_log(const char *file, int line, const char *msgfmt, ...) + + void set_debug_flag(int v) + { } ++ ++void set_debug_log_from_config(config_t c) ++{ } + #endif +diff --git a/util/util.h b/util/util.h +index 7d3a9da..802e25c 100644 +--- a/util/util.h ++++ util/util.h +@@ -414,9 +414,9 @@ JABBERD2_API int hex_to_raw(char *in, int inlen, char *out); + JABBERD2_API int get_debug_flag(void); + JABBERD2_API void set_debug_flag(int v); + JABBERD2_API void debug_log(const char *file, int line, const char *msgfmt, ...); +-JABBERD2_API int set_debug_file(const char *filename); ++JABBERD2_API void set_debug_file(const char *filename); + +-JABBERD2_API int set_debug_log_from_config(config_t c); ++JABBERD2_API void set_debug_log_from_config(config_t c); + + #define ZONE __FILE__,__LINE__ + #define MAX_DEBUG 8192