summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-03-22 16:28:22 +0100
committerThomas Haller <thaller@redhat.com>2021-03-22 16:29:14 +0100
commit3348901df32ecaf53bf2faa558a9b6fb722fa97e (patch)
treeacc9eaafaaa98947f28c255ff9a8903635433317 /examples
parent54edfc613947d93a3250b374c81df9d335de2a96 (diff)
examples: fix exit from "vpn-import-libnm.c" example
../examples/C/glib/vpn-import-libnm.c: In function main: ../examples/C/glib/vpn-import-libnm.c:72:1: error: control reaches end of non-void function [-Werror=return-type] } ^ Fixes: 905f9975d286 ('example: importing vpn with libnm')
Diffstat (limited to 'examples')
-rw-r--r--examples/C/glib/vpn-import-libnm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/C/glib/vpn-import-libnm.c b/examples/C/glib/vpn-import-libnm.c
index ccdbe92310..6a563bac2d 100644
--- a/examples/C/glib/vpn-import-libnm.c
+++ b/examples/C/glib/vpn-import-libnm.c
@@ -69,4 +69,6 @@ main(int argc, char **argv)
nm_client_add_connection_async(client, conn, TRUE, NULL, (GAsyncReadyCallback) add_cb, loop);
g_main_loop_run(loop);
+
+ return 0;
}