diff options
author | defanor <defanor@uberspace.net> | 2021-08-29 20:46:16 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-08-29 21:39:48 +0300 |
commit | 0d5408caf8f1586b37b273ed4b1f38b24c411846 (patch) | |
tree | eb179f2491162dc4c23b8fe792ba038e330f093d /examples/basic.c | |
parent | db667520603613b46cdcda901216f87d7ee19f2a (diff) |
Update to Debian 11 versions of dependencies
Now it builds with newer compiler and library versions, the
ones from Debian 11 repositories.
Diffstat (limited to 'examples/basic.c')
-rw-r--r-- | examples/basic.c | 5 |
1 files changed, 3 insertions, 2 deletions
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]); |