summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trafgen_proto.c2
-rw-r--r--trafgen_proto.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/trafgen_proto.c b/trafgen_proto.c
index c6b9e2e..efa8fce 100644
--- a/trafgen_proto.c
+++ b/trafgen_proto.c
@@ -31,7 +31,7 @@ static size_t headers_count;
static struct proto_hdr *registered;
-struct proto_hdr *proto_current_header(void)
+static inline struct proto_hdr *proto_current_header(void)
{
if (headers_count > 0)
return headers[headers_count - 1];
diff --git a/trafgen_proto.h b/trafgen_proto.h
index 996c24e..10ded79 100644
--- a/trafgen_proto.h
+++ b/trafgen_proto.h
@@ -64,7 +64,6 @@ extern void proto_packet_finish(void);
extern struct proto_hdr *proto_lower_default_add(struct proto_hdr *hdr,
enum proto_id pid);
-extern struct proto_hdr *proto_current_header(void);
extern struct proto_hdr *proto_lower_header(struct proto_hdr *hdr);
extern uint8_t *proto_header_ptr(struct proto_hdr *hdr);