mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
libc/localtime: rename offsetp to poffset
Fix spell check error lib_localtime.c:1291: offsetp ==> offset Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
@@ -346,7 +346,7 @@ static FAR const char *getnum(FAR const char *strp, FAR int *nump,
|
||||
static FAR const char *getsecs(FAR const char *strp,
|
||||
FAR int_fast32_t *secsp);
|
||||
static FAR const char *getoffset(FAR const char *strp,
|
||||
FAR int_fast32_t *offsetp);
|
||||
FAR int_fast32_t *poffset);
|
||||
static FAR const char *getrule(FAR const char *strp,
|
||||
FAR struct rule_s *rulep);
|
||||
static void gmtload(FAR struct state_s *sp);
|
||||
@@ -1274,7 +1274,7 @@ static FAR const char *getsecs(FAR const char *strp,
|
||||
*/
|
||||
|
||||
static FAR const char *getoffset(FAR const char *strp,
|
||||
FAR int_fast32_t *offsetp)
|
||||
FAR int_fast32_t *poffset)
|
||||
{
|
||||
int neg = FALSE;
|
||||
|
||||
@@ -1288,7 +1288,7 @@ static FAR const char *getoffset(FAR const char *strp,
|
||||
++strp;
|
||||
}
|
||||
|
||||
strp = getsecs(strp, offsetp);
|
||||
strp = getsecs(strp, poffset);
|
||||
if (strp == NULL)
|
||||
{
|
||||
return NULL; /* illegal time */
|
||||
@@ -1296,7 +1296,7 @@ static FAR const char *getoffset(FAR const char *strp,
|
||||
|
||||
if (neg)
|
||||
{
|
||||
*offsetp = -*offsetp;
|
||||
*poffset = -*poffset;
|
||||
}
|
||||
|
||||
return strp;
|
||||
|
||||
Reference in New Issue
Block a user