X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audioc.c;h=77a0539d2e4513a2e9cc3f926e303f264d08d3b8;hp=ed39ce6efa942e58773d891e2ffb28acc39eecf3;hb=089fb2fb2d9e2a3473aa6fac91681ca8ddfffff3;hpb=c52dfd608f15c8779df38fd46602e562b287171a diff --git a/audioc.c b/audioc.c index ed39ce6e..77a0539d 100644 --- a/audioc.c +++ b/audioc.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2005 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2005 Andre Noll , see file COPYING. */ /** \file audioc.c The client program used to connect to para_audiod. */ @@ -291,12 +287,11 @@ __noreturn static void print_completions(void) static char *configfile_exists(void) { char *config_file; - struct stat statbuf; char *home = para_homedir(); config_file = make_message("%s/.paraslash/audioc.conf", home); free(home); - if (!stat(config_file, &statbuf)) + if (file_exists(config_file)) return config_file; free(config_file); return NULL;