]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix indentation in x-deltat.y
authorGreg Hudson <ghudson@mit.edu>
Mon, 3 Apr 2023 23:39:04 +0000 (19:39 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 10 Apr 2023 17:23:05 +0000 (13:23 -0400)
clang 14 issues a warning for having the next line at the same
indentation level as the if body.

src/lib/krb5/krb/deltat.c
src/lib/krb5/krb/x-deltat.y

index 6f4acdf027faa7049025123c9c098af4d8d99055..59ba5b19abe9858def89e00a3d23639431d818ad 100644 (file)
@@ -15,7 +15,7 @@
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 /* As a special exception, you may create a larger work that contains
    part or all of the Bison parser skeleton and distribute that work
@@ -1664,8 +1664,8 @@ mylex(int *intp, struct param *tmv)
        /* XXX assumes ASCII */
        num = c - '0';
        while (isdigit ((int) *P)) {
-         if (num > MAX_TIME / 10)
-           return tok_OVERFLOW;
+           if (num > MAX_TIME / 10)
+             return tok_OVERFLOW;
            num *= 10;
            if (num > MAX_TIME - (*P - '0'))
              return tok_OVERFLOW;
index da11b88077aa6199b9a2907bc859857d643cc110..34cdf969e4f17cd2e237d603f517b0e9c06fbfbc 100644 (file)
@@ -207,8 +207,8 @@ mylex(int *intp, struct param *tmv)
        /* XXX assumes ASCII */
        num = c - '0';
        while (isdigit ((int) *P)) {
-         if (num > MAX_TIME / 10)
-           return tok_OVERFLOW;
+           if (num > MAX_TIME / 10)
+             return tok_OVERFLOW;
            num *= 10;
            if (num > MAX_TIME - (*P - '0'))
              return tok_OVERFLOW;