X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Flib%2Fslog.c;fp=src%2Flib%2Fslog.c;h=d6c4bc2e305cef23e1833857e4f1abc709568e15;hp=5b165263bd6742c4286d52e80704ed94397f4607;hb=bd7036af56a4b61b2b473dccbeac5e26f78b57da;hpb=48da1ac5531838d157762882ee455cec4da05728 diff --git a/src/lib/slog.c b/src/lib/slog.c index 5b16526..d6c4bc2 100644 --- a/src/lib/slog.c +++ b/src/lib/slog.c @@ -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);