]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
change rename init time method
authorBastian Dehn <hhaalo@arcor.de>
Mon, 23 Feb 2026 15:33:14 +0000 (16:33 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 23 Feb 2026 15:33:14 +0000 (16:33 +0100)
src/feierabend.c

index 7b434d22c246990263ed6054f80ec02208bad38b..b48f6f52f2e058550f331094c6757df55a544270 100644 (file)
@@ -93,7 +93,7 @@ void _print_time_to_end(const uint8_t soll_hour,
        timestr = NULL;
 }
 
-time_t _init_tm_with_time(const char* hour, const char* min)
+time_t _init_time_with_args(const char* hour, const char* min)
 {
        const time_t now = time(NULL);
        struct tm now_tm =  _get_tm_from_time(now);
@@ -128,7 +128,7 @@ int main(const int argc, const char* argv[])
        printf("Version: %s\n\n", PROJECT_VERSION);
 
        const time_t now = time(NULL);
-       const time_t begin = _init_tm_with_time(hour, min);
+       const time_t begin = _init_time_with_args(hour, min);
        const time_t worktime_eight_end = get_eight_hour_end_worktime(begin);
        const time_t worktime_max_end = get_ten_hour_end_worktime(begin);