]> git.meshlink.io Git - meshlink/blobdiff - src/net_setup.c
Code reformatting.
[meshlink] / src / net_setup.c
index f2621f3b92e6f87c0f2afcbcbf742b4ba22f7aa6..10fb37b0005c5df5ae73b35bf33a66a9591796ac 100644 (file)
@@ -274,6 +274,7 @@ static bool add_listen_address(meshlink_handle_t *mesh, char *address, bool bind
        }
 
        struct addrinfo *ai;
+
        struct addrinfo hint = {
                .ai_family = addressfamily,
                .ai_socktype = SOCK_STREAM,
@@ -364,8 +365,11 @@ bool setup_myself(meshlink_handle_t *mesh) {
 
        if(!get_config_string(lookup_config(mesh->config, "Port"), &mesh->myport)) {
                int port = check_port(mesh);
-               if (port == 0)
+
+               if(port == 0) {
                        return false;
+               }
+
                xasprintf(&mesh->myport, "%d", port);
        }