X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fclient%2Fparse.c;h=5bf2bd71a957d95900c13076101ee5afc0eca415;hb=09cbdd6f34e2f578bc52880ef28d5fc53ac4a025;hp=54d8fc3fb59d0027b3d7d17f8545a0a28ddf9594;hpb=9281cb7dd7656ff5d19e0747f819051a884649ec;p=plomrogue
diff --git a/src/client/parse.c b/src/client/parse.c
index 54d8fc3..5bf2bd7 100644
--- a/src/client/parse.c
+++ b/src/client/parse.c
@@ -1,4 +1,9 @@
-/* src/client/parse.c */
+/* src/client/parse.c
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
+ */
#define _POSIX_C_SOURCE 200809L /* strdup(), snprintf() */
#include "parse.h"
@@ -31,7 +36,7 @@ extern void parse_file(char * path, void (* token_to_entry) (char *, char *))
char * errline_line = try_malloc(linemax + 1, __func__);
set_err_line_options(errline_intro, errline_line, 1);
err_line_zero();
- err_line(0 == linemax, "File is empty.");
+ err_line(!linemax, "File is empty.");
char * token0 = NULL; /* For final token_to_entry() if while() stagnates. */
char * token1 = NULL;
char * err_val = "No value given.";
@@ -65,7 +70,7 @@ extern void parsetest_defcontext(uint8_t flags)
extern void parsetest_too_many_values()
{
- err_line(NULL != token_from_line(NULL), "Too many values.");
+ err_line(!(!token_from_line(NULL)), "Too many values.");
}