summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netdissect.h3
-rw-r--r--util-print.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/netdissect.h b/netdissect.h
index 89da451e..a10ffa3b 100644
--- a/netdissect.h
+++ b/netdissect.h
@@ -141,9 +141,6 @@ struct tok {
const char *s; /* string */
};
-extern const char *tok2strbuf(const struct tok *, const char *, u_int,
- char *buf, size_t bufsize);
-
/* tok2str is deprecated */
extern const char *tok2str(const struct tok *, const char *, u_int);
extern char *bittok2str(const struct tok *, const char *, u_int);
diff --git a/util-print.c b/util-print.c
index d65f0266..a548b5ba 100644
--- a/util-print.c
+++ b/util-print.c
@@ -470,7 +470,7 @@ print_unknown_data(netdissect_options *ndo, const u_char *cp,
/*
* Convert a token value to a string; use "fmt" if not found.
*/
-const char *
+static const char *
tok2strbuf(const struct tok *lp, const char *fmt,
u_int v, char *buf, size_t bufsize)
{