Merge remote branch 'refs/remotes/fml/master'
[paraslash.git] / audioc.c
index f91f41f..b17be3d 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -95,16 +95,16 @@ int main(int argc, char *argv[])
                para_strdup("stat");
 
        if (conf.socket_given)
-               ret = create_remote_socket(conf.socket_arg);
+               ret = connect_local_socket(conf.socket_arg);
        else {
                char *hn = para_hostname(), *socket_name = make_message(
                        "/var/paraslash/audiod_socket.%s", hn);
-               ret = create_remote_socket(socket_name);
+               ret = connect_local_socket(socket_name);
                free(hn);
                free(socket_name);
        }
        if (ret < 0) {
-               PARA_EMERG_LOG("failed to create remote socket\n");
+               PARA_EMERG_LOG("failed to connect to local socket\n");
                goto out;
        }
        fd = ret;