From 577396b65279c27c2756a05bd9c405983fe2997f Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 23 Feb 2021 22:55:33 +0000 Subject: [PATCH] Set return of function to void as it doesn't return anything --- screenlock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/screenlock.c b/screenlock.c index 0535a01..89123f4 100644 --- a/screenlock.c +++ b/screenlock.c @@ -36,7 +36,7 @@ int checkrtcwake(); void configuresuspendsettingsandwakeupsources(); time_t convert_rtc_time(struct rtc_time * rtc); void die(const char *err, ...); -int getoldbrightness(); +void getoldbrightness(); void init_rtc(); void lockscreen(Display *dpy, int screen, int blank); void unblankscreen(); @@ -69,6 +69,7 @@ time_t waketime = 0; //next wakeup time according to the RTC clock int slept = 0; //indicates whether the process has slept (crust) or not int blanked = 0; //indicated whether the display blanked or not +// Real time clock device #define RTC_DEVICE "/dev/rtc0" time_t @@ -200,7 +201,7 @@ sigterm() exit(0); } -int +void getoldbrightness() { char * buffer = 0; long length;