git: 90ad63b54031 - main - libbsdconf: Remove unnecessary parens
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Sep 2026 01:08:32 UTC
The branch main has been updated by dteske:
URL: https://cgit.FreeBSD.org/src/commit/?id=90ad63b540317ce7c349b5ebab065b40ba748c27
commit 90ad63b540317ce7c349b5ebab065b40ba748c27
Author: Devin Teske <dteske@FreeBSD.org>
AuthorDate: 2026-09-17 01:05:39 +0000
Commit: Devin Teske <dteske@FreeBSD.org>
CommitDate: 2026-09-17 01:05:39 +0000
libbsdconf: Remove unnecessary parens
Reviewed by: fuz
Differential Revision: https://reviews.freebsd.org/D59745
---
lib/libbsdconf/bsdconf.c | 12 ++++++------
lib/libbsdconf/bsdconf.h | 4 ++--
lib/libbsdconf/bsdconf_put.c | 22 +++++++++++-----------
3 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/lib/libbsdconf/bsdconf.c b/lib/libbsdconf/bsdconf.c
index 07a03a656dbc..17f272f3a3e3 100644
--- a/lib/libbsdconf/bsdconf.c
+++ b/lib/libbsdconf/bsdconf.c
@@ -420,12 +420,12 @@ bsdconf_fparse(struct bsdconf_option options[], int fd,
}
/* Processing options */
- bequals = (processing_options & BSDCONF_BREAK_ON_EQUALS);
- bsemicolon = (processing_options & BSDCONF_BREAK_ON_SEMICOLON);
- case_sensitive = (processing_options & BSDCONF_CASE_SENSITIVE);
- operator_equals = (processing_options & BSDCONF_OPERATOR_EQUALS);
- require_equals = (processing_options & BSDCONF_REQUIRE_EQUALS);
- strict_equals = (processing_options & BSDCONF_STRICT_EQUALS);
+ bequals = processing_options & BSDCONF_BREAK_ON_EQUALS;
+ bsemicolon = processing_options & BSDCONF_BREAK_ON_SEMICOLON;
+ case_sensitive = processing_options & BSDCONF_CASE_SENSITIVE;
+ operator_equals = processing_options & BSDCONF_OPERATOR_EQUALS;
+ require_equals = processing_options & BSDCONF_REQUIRE_EQUALS;
+ strict_equals = processing_options & BSDCONF_STRICT_EQUALS;
/* Read the file until EOF */
while (r > 0) {
diff --git a/lib/libbsdconf/bsdconf.h b/lib/libbsdconf/bsdconf.h
index 02fc4dce8f12..00a5d6e07905 100644
--- a/lib/libbsdconf/bsdconf.h
+++ b/lib/libbsdconf/bsdconf.h
@@ -34,10 +34,10 @@
/*
* Library version info
*/
-#define BSDCONF_VERSION "1.1.0 2026-09-15"
+#define BSDCONF_VERSION "1.1.1 2026-09-16"
#define BSDCONF_VERSION_MAJOR 1
#define BSDCONF_VERSION_MINOR 1
-#define BSDCONF_VERSION_PATCH 0
+#define BSDCONF_VERSION_PATCH 1
/*
* Union for storing various types of data in a single common container.
diff --git a/lib/libbsdconf/bsdconf_put.c b/lib/libbsdconf/bsdconf_put.c
index 20053f628518..a26ab33d0c70 100644
--- a/lib/libbsdconf/bsdconf_put.c
+++ b/lib/libbsdconf/bsdconf_put.c
@@ -100,19 +100,19 @@ bsdconf_put(struct bsdconf_option options[], const char *path,
tpath[0] = '\0';
/* Decode processing options */
- bequals = (processing_options & BSDCONF_BREAK_ON_EQUALS);
- bsemicolon = (processing_options & BSDCONF_BREAK_ON_SEMICOLON);
- case_sensitive = (processing_options & BSDCONF_CASE_SENSITIVE);
- operator_equals = (processing_options & BSDCONF_OPERATOR_EQUALS);
- require_equals = (processing_options & BSDCONF_REQUIRE_EQUALS);
- strict_equals = (processing_options & BSDCONF_STRICT_EQUALS);
+ bequals = processing_options & BSDCONF_BREAK_ON_EQUALS;
+ bsemicolon = processing_options & BSDCONF_BREAK_ON_SEMICOLON;
+ case_sensitive = processing_options & BSDCONF_CASE_SENSITIVE;
+ operator_equals = processing_options & BSDCONF_OPERATOR_EQUALS;
+ require_equals = processing_options & BSDCONF_REQUIRE_EQUALS;
+ strict_equals = processing_options & BSDCONF_STRICT_EQUALS;
/* Decode put options */
- backup = (put_options & BSDCONF_PUT_BACKUP);
- emptyok = (put_options & BSDCONF_PUT_ALLOW_EMPTY);
- nodup = (put_options & BSDCONF_PUT_NO_DUPLICATES);
- quote_always = (put_options & BSDCONF_PUT_QUOTE_ALWAYS);
- unquoted = (put_options & BSDCONF_PUT_UNQUOTED);
+ backup = put_options & BSDCONF_PUT_BACKUP;
+ emptyok = put_options & BSDCONF_PUT_ALLOW_EMPTY;
+ nodup = put_options & BSDCONF_PUT_NO_DUPLICATES;
+ quote_always = put_options & BSDCONF_PUT_QUOTE_ALWAYS;
+ unquoted = put_options & BSDCONF_PUT_UNQUOTED;
/* Quoting directives are mutually exclusive */
if (unquoted && quote_always) {