krb5 commit: Fix indentation in x-deltat.y

ghudson at mit.edu ghudson at mit.edu
Mon Apr 10 16:23:17 EDT 2023


https://github.com/krb5/krb5/commit/7a05f6e01421d5b88391e45b6fb5c245e5844600
commit 7a05f6e01421d5b88391e45b6fb5c245e5844600
Author: Greg Hudson <ghudson at mit.edu>
Date:   Mon Apr 3 19:39:04 2023 -0400

    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.

 src/lib/krb5/krb/deltat.c   | 6 +++---
 src/lib/krb5/krb/x-deltat.y | 4 ++--
 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;


More information about the cvs-krb5 mailing list