Module Name: src
Committed By: rillig
Date: Sat Oct 3 06:36:01 UTC 2020
Modified Files:
src/usr.bin/make: enum.c
Log Message:
make(1): fix indentation of code for printing enum values
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/make/enum.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/enum.c
diff -u src/usr.bin/make/enum.c:1.8 src/usr.bin/make/enum.c:1.9
--- src/usr.bin/make/enum.c:1.8 Sun Sep 13 15:15:51 2020
+++ src/usr.bin/make/enum.c Sat Oct 3 06:36:01 2020
@@ -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 <[email protected]>
@@ -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 @@ Enum_FlagsToString(char *buf, size_t buf
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 @@ const char *
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 */);
}