]> git.meshlink.io Git - meshlink/blobdiff - examples/chat.c
Chat example: Trivial, fix return in void function
[meshlink] / examples / chat.c
index 1a3343288a6c7699ada71e27da5cb4260462828c..6ffebb865ceaec0404df278beca4bb6002b803bc 100644 (file)
@@ -63,7 +63,7 @@ static void parse_command(meshlink_handle_t *mesh, char *buf) {
                        fprintf(stderr, "Invitation accepted!\n");
                        if(!meshlink_start(mesh)) {
                                fprintf(stderr, "Could not start MeshLink: %s\n", meshlink_strerror(meshlink_errno));
-                       return 1;
+                       return;
                        }
                }
        } else if(!strcasecmp(buf, "kick")) {