From 8b2707a6a074e64a36ced73b45f5c5fbe774b63b Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Fri, 15 Oct 2010 02:15:54 +0800 Subject: [PATCH] time64: make helper functions static Change-Id: I98d9a5f736482e52904228c171a1bdefd2f5b213 --- libc/bionic/time64.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libc/bionic/time64.c b/libc/bionic/time64.c index 1e1f88189..9aa5d4f2b 100644 --- a/libc/bionic/time64.c +++ b/libc/bionic/time64.c @@ -364,7 +364,7 @@ static int safe_year(const Year year) } -void copy_tm_to_TM(const struct tm *src, struct TM *dest) { +static void copy_tm_to_TM(const struct tm *src, struct TM *dest) { if( src == NULL ) { memset(dest, 0, sizeof(*dest)); } @@ -396,7 +396,7 @@ void copy_tm_to_TM(const struct tm *src, struct TM *dest) { } -void copy_TM_to_tm(const struct TM *src, struct tm *dest) { +static void copy_TM_to_tm(const struct TM *src, struct tm *dest) { if( src == NULL ) { memset(dest, 0, sizeof(*dest)); } @@ -735,14 +735,14 @@ struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm) } -int valid_tm_wday( const struct TM* date ) { +static int valid_tm_wday( const struct TM* date ) { if( 0 <= date->tm_wday && date->tm_wday <= 6 ) return 1; else return 0; } -int valid_tm_mon( const struct TM* date ) { +static int valid_tm_mon( const struct TM* date ) { if( 0 <= date->tm_mon && date->tm_mon <= 11 ) return 1; else