Browse Source

move __tm_to_tzname declaration to time_impl.h with related functions

this function was added later for strftime use and the existence of
time_impl.h as the appropriate place for it seems to have been
overlooked.
Rich Felker 6 years ago
parent
commit
72bc6cbfed
2 changed files with 1 additions and 1 deletions
  1. 0 1
      src/time/strftime.c
  2. 1 0
      src/time/time_impl.h

+ 0 - 1
src/time/strftime.c

@@ -45,7 +45,6 @@ static int week_num(const struct tm *tm)
 	return val;
 }
 
-const char *__tm_to_tzname(const struct tm *);
 size_t __strftime_l(char *restrict, size_t, const char *restrict, const struct tm *restrict, locale_t);
 
 const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm *tm, locale_t loc, int pad)

+ 1 - 0
src/time/time_impl.h

@@ -4,6 +4,7 @@ int __days_in_month(int, int);
 int __month_to_secs(int, int);
 long long __year_to_secs(long long, int *);
 long long __tm_to_secs(const struct tm *);
+const char *__tm_to_tzname(const struct tm *);
 int __secs_to_tm(long long, struct tm *);
 void __secs_to_zone(long long, int, int *, long *, long *, const char **);
 const unsigned char *__map_file(const char *, size_t *);