From 0d5408caf8f1586b37b273ed4b1f38b24c411846 Mon Sep 17 00:00:00 2001 From: defanor Date: Sun, 29 Aug 2021 20:46:16 +0300 Subject: Update to Debian 11 versions of dependencies Now it builds with newer compiler and library versions, the ones from Debian 11 repositories. --- examples/basic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/basic.c b/examples/basic.c index 55597a8..e122ee8 100644 --- a/examples/basic.c +++ b/examples/basic.c @@ -80,8 +80,9 @@ int my_xml_out_cb (rexmpp_t *s, xmlNodePtr node) { return 0; } -void my_console_print_cb (rexmpp_t *s, const char *fmt, va_list args) { +int my_console_print_cb (rexmpp_t *s, const char *fmt, va_list args) { vprintf(fmt, args); + return 0; } void print_help (char *prog_name) { @@ -94,7 +95,7 @@ void print_help (char *prog_name) { , prog_name); } -main (int argc, char **argv) { +int main (int argc, char **argv) { int c, xml_console = 0, txt_console = 0, log = 0; if (argc < 2) { print_help(argv[0]); -- cgit v1.2.3