summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-03-22 14:28:48 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-03-22 14:28:48 +0000
commit8e7ad1b45fbd89960778244082f52d4fc28b9f50 (patch)
tree6cd0d1da489b51af3a047bf8073ac1cb7b05e2f8
parentd5822e61b86d3e01e8c8d87feb97cabb4ad9d67d (diff)
downloadmandoc-8e7ad1b45fbd89960778244082f52d4fc28b9f50.tar.gz
mdoc_argn_free is only used local to mdoc_argv.c, so make it static.
-rw-r--r--libmdoc.h1
-rw-r--r--mdoc_argv.c7
2 files changed, 4 insertions, 4 deletions
diff --git a/libmdoc.h b/libmdoc.h
index 4165c9c2..6ed88116 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -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;