]> git.droids-corp.org - protos/libecoli.git/blobdiff - examples/parse-yaml/parse-yaml.c
parse-yaml: fix typo
[protos/libecoli.git] / examples / parse-yaml / parse-yaml.c
index 218fe781dd43b5ce8aeff11fb10ba5006a9562b8..4f46b2212716bf26b5f212118746a32d612b5faf 100644 (file)
@@ -55,7 +55,7 @@ static void usage(const char *prgname)
                "      Set the output file.\n"
                "  -c\n"
                "  --"OPT_COMPLETE"\n"
-               "      Output the completion list."
+               "      Output the completion list.\n"
                , prgname);
 }
 
@@ -143,7 +143,7 @@ __dump_as_shell(FILE *f, const struct ec_parse *parse, size_t *seq)
                __dump_as_shell(f, child, seq);
        }
 
-       if (ec_parse_get_next(parse) != NULL) {
+       if (ec_parse_next(parse) != NULL) {
                fprintf(f, "ec_node%zu_next='ec_node%zu'\n",
                        cur_seq, *seq + 1);
        }