]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
get time_t from break
authorBastian Dehn <hhaalo@arcor.de>
Sun, 9 Jun 2024 10:15:34 +0000 (12:15 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 9 Jun 2024 10:15:34 +0000 (12:15 +0200)
src/break.c
src/break.h

index 25e32afeee4e59475facb36b9fdce3373b5fd746..7ef8cafaeca86f26d007fb89ed98346420dcc543 100644 (file)
@@ -10,7 +10,7 @@
 #define THIRTY_MINUTES 1800
 #define FOURTY_FIVE_MINITUES 2700
 
-int get_break_time(long worktime)
+time_t get_break_time(time_t worktime)
 {
        if (worktime > SIX_HOURS_FOURTY_FIVE_MINUTES)
                return FOURTY_FIVE_MINITUES;
index 2d7d373b5c47c9a2643d3d632249a6abe100e937..90fecf4b382d42e2128732f8d8785fcfab69fb78 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef BREAK_H
 #define BREAK_H
+#include <time.h>
 
-int get_break_time(long worktime);
+time_t get_break_time(time_t worktime);
 
 #endif
\ No newline at end of file