filevercmp: handle simple~ and numbered.~3~ backup suffixes
[pspp] / lib / strptime.c
index c5a039da9551bd6ca8465ae89cb3d5d20b77de32..a8791cf5a9515cc07ba70e8b6912057185915736 100644 (file)
@@ -668,13 +668,16 @@ __strptime_internal (rp, fmt, tm, decided, era_cnt LOCALE_PARAM)
             specify hours.  If fours digits are used, minutes are
             also specified.  */
          {
+           bool neg;
+           int n;
+
            val = 0;
            while (*rp == ' ')
              ++rp;
            if (*rp != '+' && *rp != '-')
              return NULL;
-           bool neg = *rp++ == '-';
-           int n = 0;
+           neg = *rp++ == '-';
+           n = 0;
            while (n < 4 && *rp >= '0' && *rp <= '9')
              {
                val = val * 10 + *rp++ - '0';