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

index 56a4109ddfee17aa6d003ab93f41d2eef21f8344..7b434d22c246990263ed6054f80ec02208bad38b 100644 (file)
@@ -30,17 +30,17 @@ struct tm _get_tm_from_time(const time_t time)
        return tm_value;
 }
 
-void _print_german_long_date(const struct tm time_info)
+void _print_german_long_date(const struct tm time)
 {
-       char* weekday = get_weekday_str(time_info.tm_wday);
+       char* weekday = get_weekday_str(time.tm_wday);
 
        printf("%s %02d.%02d.%04d %02d:%02d",
                weekday,
-               time_info.tm_mday,
-               time_info.tm_mon + MONTH_CORRECTION,
-               time_info.tm_year + EPOCH_ZERO,
-               time_info.tm_hour,
-               time_info.tm_min);
+               time.tm_mday,
+               time.tm_mon + MONTH_CORRECTION,
+               time.tm_year + EPOCH_ZERO,
+               time.tm_hour,
+               time.tm_min);
 
        free(weekday);
        weekday = NULL;