X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=fade.c;h=9ba733b3113ca0273143e95892266c236938631f;hp=8dfbcc2f767f251649cddca00084d1a080b0adae;hb=0b814bdbb7a3fe018cffee0162dc6c916cfa6879;hpb=c839ef92e35d5604748aa4674b400156ff7baced diff --git a/fade.c b/fade.c index 8dfbcc2f..9ba733b3 100644 --- a/fade.c +++ b/fade.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1998-2005 Andre Noll + * Copyright (C) 1998-2007 Andre Noll * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -174,7 +174,7 @@ static int client_cmd(const char *cmd,...) int ret, fds[3] = {0, 0, 0}; pid_t pid; char *cmdline = make_message(BINDIR "/para_client %s", cmd); - PARA_INFO_LOG("%s", cmdline); + PARA_INFO_LOG("%s\n", cmdline); ret = para_exec_cmdline_pid(&pid, cmdline, fds); free(cmdline); return ret; @@ -267,17 +267,17 @@ static void snooze(void) static int configfile_exists(void) { - static char *config_file; + static char *config_file; - if (!args_info.config_file_given) { + if (!args_info.config_file_given) { char *home = para_homedir(); const char *conf = ".paraslash/fade.conf"; free(config_file); config_file = make_message("%s/%s", home, conf); free(home); - args_info.config_file_arg = config_file; - } - return file_exists(args_info.config_file_arg); + args_info.config_file_arg = config_file; + } + return file_exists(args_info.config_file_arg); } @@ -287,6 +287,7 @@ int main(int argc, char *argv[]) if (fade_cmdline_parser(argc, argv, &args_info)) exit(EXIT_FAILURE); + HANDLE_VERSION_FLAG("fade", args_info); ret = configfile_exists(); if (!ret && args_info.config_file_given) { PARA_EMERG_LOG("can not read config file %s\n",