From: Greg Hudson Date: Mon, 3 Apr 2023 23:39:04 +0000 (-0400) Subject: Fix indentation in x-deltat.y X-Git-Tag: krb5-1.21-beta1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a05f6e01421d5b88391e45b6fb5c245e5844600;p=thirdparty%2Fkrb5.git Fix indentation in x-deltat.y clang 14 issues a warning for having the next line at the same indentation level as the if body. --- diff --git a/src/lib/krb5/krb/deltat.c b/src/lib/krb5/krb/deltat.c index 6f4acdf027..59ba5b19ab 100644 --- a/src/lib/krb5/krb/deltat.c +++ b/src/lib/krb5/krb/deltat.c @@ -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 . */ + along with this program. If not, see . */ /* 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; diff --git a/src/lib/krb5/krb/x-deltat.y b/src/lib/krb5/krb/x-deltat.y index da11b88077..34cdf969e4 100644 --- a/src/lib/krb5/krb/x-deltat.y +++ b/src/lib/krb5/krb/x-deltat.y @@ -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;