Remove tailing spaces and TODO file
[src/app-framework-binder.git] / src / afb-api-ws.c
index 1bd1071..7e0adb7 100644 (file)
@@ -169,7 +169,6 @@ static int api_ws_socket_inet(const char *path, int server)
        }
        freeaddrinfo(rai);
        return -1;
-       
 }
 
 static int api_ws_socket(const char *path, int server)
@@ -325,7 +324,7 @@ int afb_api_ws_add_server(const char *path, struct afb_apiset *apiset)
                goto error;
 
        /* check api name */
-       if (afb_apiset_has(apiset, apiws->api, 1)) {
+       if (!afb_apiset_lookup(apiset, apiws->api, 1)) {
                ERROR("Can't provide ws-server for %s: API %s doesn't exist", path, apiws->api);
                goto error2;
        }