Imported Upstream version 1.2.0
[psensor-pkg-debian.git] / src / lib / slog.c
index 5b16526..d6c4bc2 100644 (file)
@@ -65,7 +65,7 @@ static char *time_to_str(time_t *t)
        return NULL;
 }
 
-static char *get_default_path()
+static char *get_default_path(void)
 {
        char *home, *path, *dir;
 
@@ -176,10 +176,10 @@ static void *slog_routine(void *data)
                sleep(period);
        }
 
-       pthread_exit(0);
+       pthread_exit(NULL);
 }
 
-void slog_close()
+void slog_close(void)
 {
        if (file) {
                pthread_cancel(thread);