summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2023-04-03 19:39:04 -0400
committerGreg Hudson <ghudson@mit.edu>2023-04-10 13:23:05 -0400
commit7a05f6e01421d5b88391e45b6fb5c245e5844600 (patch)
tree7e9d06605d6150ead3a66aa56945566b214d6a99
parent9327e92950086753f61f7e2d02bfa658e7779777 (diff)
downloadkrb5-7a05f6e01421d5b88391e45b6fb5c245e5844600.tar.gz
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.
-rw-r--r--src/lib/krb5/krb/deltat.c6
-rw-r--r--src/lib/krb5/krb/x-deltat.y4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/krb5/krb/deltat.c b/src/lib/krb5/krb/deltat.c
index 6f4acdf02..59ba5b19a 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 <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;
diff --git a/src/lib/krb5/krb/x-deltat.y b/src/lib/krb5/krb/x-deltat.y
index da11b8807..34cdf969e 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;