Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make(1): fix indentation of code for printing e...



details:   https://anonhg.NetBSD.org/src/rev/34d5479d43f6
branches:  trunk
changeset: 976740:34d5479d43f6
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Oct 03 06:36:01 2020 +0000

description:
make(1): fix indentation of code for printing enum values

diffstat:

 usr.bin/make/enum.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r 7c2c9d35ef7c -r 34d5479d43f6 usr.bin/make/enum.c
--- a/usr.bin/make/enum.c       Sat Oct 03 05:56:26 2020 +0000
+++ b/usr.bin/make/enum.c       Sat Oct 03 06:36:01 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: enum.c,v 1.8 2020/09/13 15:15:51 rillig Exp $  */
+/*     $NetBSD: enum.c,v 1.9 2020/10/03 06:36:01 rillig Exp $  */
 
 /*
  Copyright (c) 2020 Roland Illig <rillig%NetBSD.org@localhost>
@@ -33,7 +33,7 @@
 
 #include "make.h"
 
-MAKE_RCSID("$NetBSD: enum.c,v 1.8 2020/09/13 15:15:51 rillig Exp $");
+MAKE_RCSID("$NetBSD: enum.c,v 1.9 2020/10/03 06:36:01 rillig Exp $");
 
 /* Convert a bitset into a string representation, showing the names of the
  * individual bits.
@@ -52,7 +52,7 @@
                size_t name_len;
 
                if ((value & spec->es_value) != spec->es_value)
-                           continue;
+                       continue;
                value &= ~spec->es_value;
 
                assert(buf_size >= sep_len + 1);
@@ -86,8 +86,8 @@
 Enum_ValueToString(int value, const EnumToStringSpec *spec)
 {
        for (; spec->es_name[0] != '\0'; spec++) {
-           if (value == spec->es_value)
-               return spec->es_name;
+               if (value == spec->es_value)
+                       return spec->es_name;
        }
        abort(/* unknown enum value */);
 }



Home | Main Index | Thread Index | Old Index