-/*
- * Copyright (C) 2005 Andre Noll <maan@tuebingen.mpg.de>
- *
- * Licensed under the GPL v2. For licencing details see COPYING.
- */
+/* Copyright (C) 2005 Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */
/** \file audioc.c The client program used to connect to para_audiod. */
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] == '-')
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;