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:
buxiasen
2025-12-19 17:55:57 +08:00
committed by Matteo Golin
parent bda9ab9287
commit 4028132910
+4 -4
View File
@@ -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, static FAR const char *getsecs(FAR const char *strp,
FAR int_fast32_t *secsp); FAR int_fast32_t *secsp);
static FAR const char *getoffset(FAR const char *strp, 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, static FAR const char *getrule(FAR const char *strp,
FAR struct rule_s *rulep); FAR struct rule_s *rulep);
static void gmtload(FAR struct state_s *sp); 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, static FAR const char *getoffset(FAR const char *strp,
FAR int_fast32_t *offsetp) FAR int_fast32_t *poffset)
{ {
int neg = FALSE; int neg = FALSE;
@@ -1288,7 +1288,7 @@ static FAR const char *getoffset(FAR const char *strp,
++strp; ++strp;
} }
strp = getsecs(strp, offsetp); strp = getsecs(strp, poffset);
if (strp == NULL) if (strp == NULL)
{ {
return NULL; /* illegal time */ return NULL; /* illegal time */
@@ -1296,7 +1296,7 @@ static FAR const char *getoffset(FAR const char *strp,
if (neg) if (neg)
{ {
*offsetp = -*offsetp; *poffset = -*poffset;
} }
return strp; return strp;