From f357897b6c6b60bcdebbfda7f76c1fcb3304ee70 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 15 Feb 2015 16:38:18 -0600 Subject: [PATCH] Some files that now include sys/time.h should no longer include timer.h --- fs/vfs/fs_select.c | 1 - include/time.h | 2 +- libc/time/lib_time.c | 5 ++++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/fs/vfs/fs_select.c b/fs/vfs/fs_select.c index 0edb8efbd5..6edf2b7c36 100644 --- a/fs/vfs/fs_select.c +++ b/fs/vfs/fs_select.c @@ -44,7 +44,6 @@ #include #include -#include #include #include #include diff --git a/include/time.h b/include/time.h index c43385acea..5630b79581 100644 --- a/include/time.h +++ b/include/time.h @@ -190,7 +190,7 @@ int clock_getres(clockid_t clockid, FAR struct timespec *res); time_t mktime(FAR struct tm *tp); FAR struct tm *gmtime(FAR const time_t *timer); FAR struct tm *gmtime_r(FAR const time_t *timer, FAR struct tm *result); -size_t strftime(char *s, size_t max, FAR const char *format, +size_t strftime(FAR char *s, size_t max, FAR const char *format, FAR const struct tm *tm); time_t time(FAR time_t *tloc); diff --git a/libc/time/lib_time.c b/libc/time/lib_time.c index c7c1a65655..21efb1428a 100644 --- a/libc/time/lib_time.c +++ b/libc/time/lib_time.c @@ -39,9 +39,12 @@ #include -#include #include +/**************************************************************************** + * Public Functions + ****************************************************************************/ + /**************************************************************************** * Function: time *