code style
[psensor.git] / src / main.c
index 3ef7154..1953e4b 100644 (file)
@@ -314,7 +314,7 @@ static void log_init()
        path = malloc(strlen(dir)+1+strlen("log")+1);
        sprintf(path, "%s/%s", dir, "log");
 
-       log_open(path, LOG_INFO);
+       log_open(path);
 
        free(dir);
        free(path);
@@ -346,10 +346,6 @@ int main(int argc, char **argv)
        textdomain(PACKAGE);
 #endif
 
-#if TUTU
-       printf("coucou\n");
-#endif
-
        while ((optc = getopt_long(argc, argv, "vhdu:", long_options,
                                   NULL)) != -1) {
                switch (optc) {
@@ -466,6 +462,9 @@ int main(int argc, char **argv)
 #ifdef HAVE_LIBATIADL
        amd_cleanup();
 #endif
+#ifdef HAVE_REMOTE_SUPPORT
+       rsensor_cleanup();
+#endif
 
        psensor_list_free(ui.sensors);
        ui.sensors = NULL;