fix typo and compile error - chess-puzzles - chess puzzle book generator
 (HTM) git clone git://git.codemadness.org/chess-puzzles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d9c1c31debf454d25aaebc6eb90a2bca3e1eb52e
 (DIR) parent e1243f806a094c73adcc8bb2dd8633ff852ba1e4
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       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(-)
       ---
 (DIR) 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];