X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audioc.c;h=77a0539d2e4513a2e9cc3f926e303f264d08d3b8;hp=1d69b2c15f7e6f3fb2683d107f04e738ecfc83cf;hb=ac93cb364106bbaa88bf0d0852981a872166e6a9;hpb=b59e841036a107b52a0221e48d7e05f86da92979 diff --git a/audioc.c b/audioc.c index 1d69b2c1..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. */ @@ -116,7 +112,7 @@ static void version_completer(struct i9e_completion_info *ci, static void stat_completer(struct i9e_completion_info *ci, struct i9e_completion_result *cr) { - char *sia[] = {STATUS_ITEM_ARRAY NULL}; + char *sia[] = {STATUS_ITEMS NULL}; char *opts[] = {LSG_AUDIOD_CMD_STAT_OPTS, NULL}; if (ci->word_num <= 2 && ci->word && ci->word[0] == '-') @@ -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;