diff options
author | Brent Cook <bcook@openbsd.org> | 2015-10-15 14:32:02 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-10-15 14:32:02 -0500 |
commit | cac089b5d6f4b0237f8221d18079735f1d3e7c72 (patch) | |
tree | 86c7723b1706dfff67b596c38f8f86c4ef8d825f | |
parent | c02436645dafd0e97ee7e91ab8afd70bb997453c (diff) | |
download | portable-cac089b5d6f4b0237f8221d18079735f1d3e7c72.tar.gz portable-cac089b5d6f4b0237f8221d18079735f1d3e7c72.tar.bz2 portable-cac089b5d6f4b0237f8221d18079735f1d3e7c72.zip |
make internal functions static
-rw-r--r-- | crypto/compat/timegm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/compat/timegm.c b/crypto/compat/timegm.c index 81286bd..0655ce0 100644 --- a/crypto/compat/timegm.c +++ b/crypto/compat/timegm.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #define DAYS_PER_100Y (365*100 + 24) | 34 | #define DAYS_PER_100Y (365*100 + 24) |
35 | #define DAYS_PER_4Y (365*4 + 1) | 35 | #define DAYS_PER_4Y (365*4 + 1) |
36 | 36 | ||
37 | int __month_to_secs(int month, int is_leap) | 37 | static int __month_to_secs(int month, int is_leap) |
38 | { | 38 | { |
39 | static const int secs_through_month[] = { | 39 | static const int secs_through_month[] = { |
40 | 0, 31*86400, 59*86400, 90*86400, | 40 | 0, 31*86400, 59*86400, 90*86400, |
@@ -45,7 +45,7 @@ int __month_to_secs(int month, int is_leap) | |||
45 | return t; | 45 | return t; |
46 | } | 46 | } |
47 | 47 | ||
48 | long long __year_to_secs(long long year, int *is_leap) | 48 | static long long __year_to_secs(long long year, int *is_leap) |
49 | { | 49 | { |
50 | if (year-2ULL <= 136) { | 50 | if (year-2ULL <= 136) { |
51 | int y = year; | 51 | int y = year; |
@@ -93,7 +93,7 @@ long long __year_to_secs(long long year, int *is_leap) | |||
93 | return (year-100) * 31536000LL + leaps * 86400LL + 946684800 + 86400; | 93 | return (year-100) * 31536000LL + leaps * 86400LL + 946684800 + 86400; |
94 | } | 94 | } |
95 | 95 | ||
96 | long long __tm_to_secs(const struct tm *tm) | 96 | static long long __tm_to_secs(const struct tm *tm) |
97 | { | 97 | { |
98 | int is_leap; | 98 | int is_leap; |
99 | long long year = tm->tm_year; | 99 | long long year = tm->tm_year; |
@@ -116,7 +116,7 @@ long long __tm_to_secs(const struct tm *tm) | |||
116 | return t; | 116 | return t; |
117 | } | 117 | } |
118 | 118 | ||
119 | int __secs_to_tm(long long t, struct tm *tm) | 119 | static int __secs_to_tm(long long t, struct tm *tm) |
120 | { | 120 | { |
121 | long long days, secs; | 121 | long long days, secs; |
122 | int remdays, remsecs, remyears; | 122 | int remdays, remsecs, remyears; |