]> git.meshlink.io Git - meshlink/commitdiff
Chat example: Trivial, fix return in void function
authorSaverio Proto <zioproto@gmail.com>
Fri, 8 Aug 2014 11:05:55 +0000 (11:05 +0000)
committerSaverio Proto <zioproto@gmail.com>
Fri, 8 Aug 2014 11:20:53 +0000 (13:20 +0200)
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")) {