summaryrefslogtreecommitdiff
path: root/src/subscribe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/subscribe.c')
-rw-r--r--src/subscribe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/subscribe.c b/src/subscribe.c
index e7d5883..b016283 100644
--- a/src/subscribe.c
+++ b/src/subscribe.c
@@ -65,14 +65,16 @@ main(void)
65 PASSWORD, 65 PASSWORD,
66 HOSTNAME, 66 HOSTNAME,
67 PORT, 67 PORT,
68 callback,
69 NULL); 68 NULL);
70 69
71 if ( !client ) { 70 if ( !client ) {
72 return EXIT_FAILURE; 71 return EXIT_FAILURE;
73 } 72 }
74 73
75 mqtt_run(client, (const char *[]){ TOPIC, "testtopic", NULL }, &terminate); 74 mqtt_run(client,
75 (const char *[]){ TOPIC, "testtopic", NULL },
76 callback,
77 &terminate);
76 78
77 mqtt_shutdown(client); 79 mqtt_shutdown(client);
78 80