summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-10 16:48:48 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-10 16:48:48 +0200
commit53d1f7a25aa0d35da3050a0be1092573de541d27 (patch)
treeb34005779f898c7487c1f500d7989193039edf35
parent00ecef01d7dd1f53c58ddeb0f906f3ec602283f0 (diff)
downloadtcpdump-53d1f7a25aa0d35da3050a0be1092573de541d27.tar.gz
Update hex_and_ascii_print_with_offset() to static
-rw-r--r--netdissect.h1
-rw-r--r--print-ascii.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/netdissect.h b/netdissect.h
index f601bc11..39d17969 100644
--- a/netdissect.h
+++ b/netdissect.h
@@ -524,7 +524,6 @@ extern void geonet_print(netdissect_options *, const u_char *, u_int, const stru
extern void gre_print(netdissect_options *, const u_char *, u_int);
extern int hbhopt_print(netdissect_options *, const u_char *);
extern void hex_and_ascii_print(netdissect_options *, const char *, const u_char *, u_int);
-extern void hex_and_ascii_print_with_offset(netdissect_options *, const char *, const u_char *, u_int, u_int);
extern void hex_print(netdissect_options *, const char *ident, const u_char *cp, u_int);
extern void hex_print_with_offset(netdissect_options *, const char *ident, const u_char *cp, u_int, u_int);
extern void hncp_print(netdissect_options *, const u_char *, u_int);
diff --git a/print-ascii.c b/print-ascii.c
index 78bced6a..83b0c38f 100644
--- a/print-ascii.c
+++ b/print-ascii.c
@@ -55,6 +55,8 @@
#define HEXDUMP_HEXSTUFF_PER_LINE \
(HEXDUMP_HEXSTUFF_PER_SHORT * HEXDUMP_SHORTS_PER_LINE)
+static void hex_and_ascii_print_with_offset(netdissect_options *, const char *, const u_char *, u_int, u_int);
+
void
ascii_print(netdissect_options *ndo,
const u_char *cp, u_int length)
@@ -93,7 +95,7 @@ ascii_print(netdissect_options *ndo,
}
}
-void
+static void
hex_and_ascii_print_with_offset(netdissect_options *ndo, const char *ident,
const u_char *cp, u_int length, u_int oset)
{