This is an automated email from the ASF dual-hosted git repository.

linguini pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 4028132910ba518d8fc02369dde52068c391b55a
Author: buxiasen <[email protected]>
AuthorDate: Fri Dec 19 17:55:57 2025 +0800

    libc/localtime: rename offsetp to poffset
    
    Fix spell check error
    lib_localtime.c:1291: offsetp ==> offset
    
    Signed-off-by: buxiasen <[email protected]>
---
 libs/libc/time/lib_localtime.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libs/libc/time/lib_localtime.c b/libs/libc/time/lib_localtime.c
index 4745e20344d..2d0e96f7df4 100644
--- a/libs/libc/time/lib_localtime.c
+++ b/libs/libc/time/lib_localtime.c
@@ -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;

Reply via email to