aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/format.c3
-rw-r--r--src/parsertab.c1
-rw-r--r--tests/gcffmt.c3
3 files changed, 4 insertions, 3 deletions
diff --git a/src/format.c b/src/format.c
index 4a0d759..d65f712 100644
--- a/src/format.c
+++ b/src/format.c
@@ -312,6 +312,7 @@ grecs_format_node(struct grecs_node *node, int flags,
grecs_format_value(node->v.value, flags, clos);
}
}
+ return 0;
}
@@ -364,7 +365,7 @@ int
grecs_print_node(struct grecs_node *node, int flags, FILE *fp)
{
struct grecs_format_closure clos = { file_fmt, fp };
- grecs_format_node(node, flags, &clos);
+ return grecs_format_node(node, flags, &clos);
}
diff --git a/src/parsertab.c b/src/parsertab.c
index ce4c7b4..579cc40 100644
--- a/src/parsertab.c
+++ b/src/parsertab.c
@@ -18,6 +18,7 @@
# include <config.h>
#endif
#include <stdlib.h>
+#include <strings.h>
#include <errno.h>
#include "grecs.h"
diff --git a/tests/gcffmt.c b/tests/gcffmt.c
index 1352e5c..ca69019 100644
--- a/tests/gcffmt.c
+++ b/tests/gcffmt.c
@@ -52,8 +52,7 @@ usage(const char *arg, FILE *fp, int code)
lh.file = fp;
lh.delim = '=';
grecs_enumerate_parsers(list_parser_types, &lh);
- fprintf(fp, "] [-Idir] [-include=dir] file [file...]\n",
- arg);
+ fprintf(fp, "] [-Idir] [-include=dir] file [file...]\n");
exit(code);
}

Return to:

Send suggestions and report system problems to the System administrator.