]> Savannah Git Hosting - gnulib.git/commitdiff
strptime: fix compile error in recent change
authorPádraig Brady <P@draigBrady.com>
Mon, 14 Nov 2016 20:07:39 +0000 (20:07 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 14 Nov 2016 20:08:40 +0000 (20:08 +0000)
* lib/strptime.c (__strptime_internal): Fix ported code.

ChangeLog
lib/strptime.c

index 3fb31d4536309c633adbec05f30ff205e6952e4e..4eaad708b771e6ad3c6f6fb2ea464400ae63feb1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-14  Pádraig Brady  <P@draigBrady.com>
+
+       strptime: fix compile error in recent change
+       * lib/strptime.c (__strptime_internal): Fix ported code.
+
 2016-11-11  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
index 7cedb779f924ebf097201cd1b4c6e36896e9debc..bf1e8745281430283b5fb05e0e7c5893bed424d5 100644 (file)
@@ -530,9 +530,9 @@ __strptime_internal (rp, fmt, tm, decided, era_cnt LOCALE_PARAM)
           get_number (1, 4, 1);
           tm->tm_mon = (val - 1) * 3;
           tm->tm_mday = 1;
-          s.have_mon = 1;
-          s.have_mday = 1;
-          s.want_xday = 1;
+          have_mon = 1;
+          have_mday = 1;
+          want_xday = 1;
           break;
         case 'r':
 #ifdef _NL_CURRENT
@@ -996,9 +996,9 @@ __strptime_internal (rp, fmt, tm, decided, era_cnt LOCALE_PARAM)
               get_alt_number (1, 4, 1);
               tm->tm_mon = (val - 1) * 3;
               tm->tm_mday = 1;
-              s.have_mon = 1;
-              s.have_mday = 1;
-              s.want_xday = 1;
+              have_mon = 1;
+              have_mday = 1;
+              want_xday = 1;
               break;
             case 'S':
               /* Match seconds using alternate numeric symbols.  */