summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proto.h2
-rw-r--r--proto_none.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/proto.h b/proto.h
index 227a748..0cc1fd8 100644
--- a/proto.h
+++ b/proto.h
@@ -26,7 +26,9 @@ struct protocol {
};
extern void empty(struct pkt_buff *pkt);
+extern void _hex(uint8_t *ptr, size_t len);
extern void hex(struct pkt_buff *pkt);
+extern void _ascii(uint8_t *ptr, size_t len);
extern void ascii(struct pkt_buff *pkt);
extern void hex_ascii(struct pkt_buff *pkt);
diff --git a/proto_none.c b/proto_none.c
index 0c0f62a..6b36962 100644
--- a/proto_none.c
+++ b/proto_none.c
@@ -14,7 +14,7 @@
void empty(struct pkt_buff *pkt __maybe_unused) {}
-static void _hex(uint8_t *ptr, size_t len)
+void _hex(uint8_t *ptr, size_t len)
{
if (!len)
return;
@@ -36,7 +36,7 @@ void hex(struct pkt_buff *pkt)
tprintf("\n");
}
-static void _ascii(uint8_t *ptr, size_t len)
+void _ascii(uint8_t *ptr, size_t len)
{
if (!len)
return;