LibC: Don't use reserved names for the arguments in strftime declaration

The `max` argument could collide with the macro. Let's use the name
provided by POSIX instead.
This commit is contained in:
Lucas Chollet committed 2026-09-23 09:36:07 +02:00
1 parent 5528cdcfb7
commit abd41e812d
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ struct tm* gmtime_r(time_t const* timep, struct tm* result);
struct tm* localtime_r(time_t const* timep, struct tm* result);
double difftime(time_t, time_t);
size_t strftime(char* s, size_t max, char const* format, const struct tm*) __attribute__((format(strftime, 3, 0)));
size_t strftime(char* s, size_t maxsize, char const* format, const struct tm* timeptr) __attribute__((format(strftime, 3, 0)));
#define TIME_UTC 0
int timespec_get(struct timespec*, int);