]> git.sur5r.net Git - i3/i3status/blobdiff - config.c
Use correct format string (%ld)
[i3/i3status] / config.c
index ff57f66e8bb64f0c2f126c8bec61bd157ada1e18..e77ff2ef871b9887b710a9b604da1b5bc6857701 100644 (file)
--- a/config.c
+++ b/config.c
@@ -114,7 +114,6 @@ int load_configuration(const char *configfile) {
                                free(globbed);
                                globbed = strdup(dest_value);
                        }
-                       fprintf(stderr, "gots path: %s\n", globbed);
                        if (globbed[strlen(globbed)-1] != '/')
                                die("wmii_path is not terminated by /");
                        wmii_path = globbed;
@@ -125,8 +124,6 @@ int load_configuration(const char *configfile) {
                }
                OPT("battery_path")
                {
-                       if ((stat(dest_value, &stbuf)) == -1)
-                               die("battery_path contains an invalid path");
                        battery_path = strdup(dest_value);
                }
                OPT("run_watch")