]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
change optimize worktime header
authorBastian Dehn <hhaalo@arcor.de>
Sat, 14 Feb 2026 08:01:59 +0000 (09:01 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 14 Feb 2026 08:01:59 +0000 (09:01 +0100)
src/feierabend.c
src/worktime.h

index 0d2d9a38e54d109703343edf8666298c308f7b61..21b68501bec9bc3280bf4d507eda4d0150f22caa 100644 (file)
@@ -1,11 +1,10 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
-#include "feierabend.h"
 #include "time_format.h"
 #include "validate.h"
 #include "worktime.h"
 #include "break.h"
-#include "config.h"
 
 #define MAX_TIME_STR_LENGTH 7
 
index bd2c092036ed1b5af699ce21e74188d7c239d694..ac344cd15c064159cc9a2897c9025c6117b97f98 100644 (file)
@@ -3,7 +3,9 @@
 #include "config.h"
 #include <time.h>
 
-#define SOLL_WORKTIME SOLL_HOUR * 3600 + SOLL_MINUTES * 60
+#define ONE_HOUR 3600
+#define ONE_MINUTE 60
+#define SOLL_WORKTIME SOLL_HOUR * ONE_HOUR + SOLL_MINUTES * ONE_MINUTE
 
 time_t get_brutto_worktime(time_t begin, time_t now);
 time_t get_current_worktime(time_t begin, time_t now);