fix typo and compile error - chess-puzzles - chess puzzle book generator | |
git clone git://git.codemadness.org/chess-puzzles | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d9c1c31debf454d25aaebc6eb90a2bca3e1eb52e | |
parent e1243f806a094c73adcc8bb2dd8633ff852ba1e4 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Wed, 20 Dec 2023 22:39:53 +0100 | |
fix typo and compile error | |
Tested on OpenBSD. | |
Diffstat: | |
M fen.c | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/fen.c b/fen.c | |
@@ -465,7 +465,7 @@ main(int argc, char *argv[]) | |
long l; | |
#ifdef __OpenBSD__ | |
- if (pledge("stdio", NULL) = -1) | |
+ if (pledge("stdio", NULL) == -1) | |
err(1, "pledge"); | |
#endif | |
@@ -493,6 +493,7 @@ main(int argc, char *argv[]) | |
} | |
} | |
next: | |
+ ; | |
} | |
if (i < argc) { | |
fen = argv[i]; |