mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
global/variables: add g_ prefix to some global variables
Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
@@ -30,6 +30,12 @@
|
||||
|
||||
#include <nuttx/clock.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
static struct tm g_gmtime;
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
@@ -44,8 +50,7 @@
|
||||
|
||||
FAR struct tm *gmtime(FAR const time_t *timep)
|
||||
{
|
||||
static struct tm tm;
|
||||
return gmtime_r(timep, &tm);
|
||||
return gmtime_r(timep, &g_gmtime);
|
||||
}
|
||||
|
||||
FAR struct tm *localtime(FAR const time_t *timep)
|
||||
|
||||
Reference in New Issue
Block a user