aac: fix some signedness warnings
[paraslash.git] / fade.c
diff --git a/fade.c b/fade.c
index 55c62a7444b64430920aaf5d2b4521b8bf2050e6..9ba733b3113ca0273143e95892266c236938631f 100644 (file)
--- a/fade.c
+++ b/fade.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1998-2005 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 1998-2007 Andre Noll <maan@systemlinux.org>
  *
  *     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
@@ -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",