X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audioc.c;h=adcae715e28d29c48da934a16360dab8b5ecc476;hp=f91f41ffc99e004ff8468000f6579ee045265ff8;hb=be9f7c9b442f7b723427a79f85774d5fa7718425;hpb=9b565c60fd159e12d255bb18db9dbff066deebea diff --git a/audioc.c b/audioc.c index f91f41ff..adcae715 100644 --- a/audioc.c +++ b/audioc.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2010 Andre Noll + * Copyright (C) 2005-2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -16,6 +16,7 @@ #include "net.h" #include "string.h" #include "fd.h" +#include "version.h" INIT_AUDIOC_ERRLISTS; @@ -95,16 +96,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;