diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-22 14:28:48 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-22 14:28:48 +0000 |
commit | 8e7ad1b45fbd89960778244082f52d4fc28b9f50 (patch) | |
tree | 6cd0d1da489b51af3a047bf8073ac1cb7b05e2f8 | |
parent | d5822e61b86d3e01e8c8d87feb97cabb4ad9d67d (diff) | |
download | mandoc-8e7ad1b45fbd89960778244082f52d4fc28b9f50.tar.gz |
mdoc_argn_free is only used local to mdoc_argv.c, so make it static.
-rw-r--r-- | libmdoc.h | 1 | ||||
-rw-r--r-- | mdoc_argv.c | 7 |
2 files changed, 4 insertions, 4 deletions
@@ -132,7 +132,6 @@ int mdoc_valid_post(struct mdoc *); enum margverr mdoc_argv(struct mdoc *, int, enum mdoct, struct mdoc_arg **, int *, char *); void mdoc_argv_free(struct mdoc_arg *); -void mdoc_argn_free(struct mdoc_arg *, int); enum margserr mdoc_args(struct mdoc *, int, int *, char *, enum mdoct, char **); enum margserr mdoc_zargs(struct mdoc *, int, diff --git a/mdoc_argv.c b/mdoc_argv.c index e5c06db8..dad47cf7 100644 --- a/mdoc_argv.c +++ b/mdoc_argv.c @@ -45,6 +45,7 @@ static int argv_opt_single(struct mdoc *, int, struct mdoc_argv *, int *, char *); static int argv_multi(struct mdoc *, int, struct mdoc_argv *, int *, char *); +static void argn_free(struct mdoc_arg *, int); enum argvflag { ARGV_NONE, /* no args to flag (e.g., -split) */ @@ -295,14 +296,14 @@ mdoc_argv_free(struct mdoc_arg *p) assert(p->argc); for (i = (int)p->argc - 1; i >= 0; i--) - mdoc_argn_free(p, i); + argn_free(p, i); free(p->argv); free(p); } -void -mdoc_argn_free(struct mdoc_arg *p, int iarg) +static void +argn_free(struct mdoc_arg *p, int iarg) { struct mdoc_argv *arg; int j; |