]> git.sesse.net Git - cubemap/blobdiff - main.cpp
Fix a spurious warning.
[cubemap] / main.cpp
index e48bdf1f7761c2933d8279810602cbccd2a724ca..6c8051a351c471fac56d1e46cc695387ed8c382b 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -272,7 +272,7 @@ start:
        if (state_fd != -1) {
                fprintf(stderr, "Deserializing state from previous process... ");
                string serialized;
-               if (!read_tempfile(atoi(argv[3]), &serialized)) {
+               if (!read_tempfile(state_fd, &serialized)) {
                        exit(1);
                }
                if (!loaded_state.ParseFromString(serialized)) {
@@ -329,8 +329,6 @@ start:
        if (!config.stats_file.empty()) {
                stats_thread = new StatsThread(config.stats_file, config.stats_interval);
                stats_thread->run();
-       } else if (config.stats_interval != -1) {
-               fprintf(stderr, "WARNING: 'stats_interval' given, but no 'stats_file'. No statistics will be written.\n");
        }
 
        signal(SIGHUP, hup);