summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2021-08-29 20:46:16 +0300
committerdefanor <defanor@uberspace.net>2021-08-29 21:39:48 +0300
commit0d5408caf8f1586b37b273ed4b1f38b24c411846 (patch)
treeeb179f2491162dc4c23b8fe792ba038e330f093d /examples
parentdb667520603613b46cdcda901216f87d7ee19f2a (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')
-rw-r--r--examples/basic.c5
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]);