summaryrefslogtreecommitdiff
path: root/trafgen_proto.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-02-03 11:25:32 +0100
committerTobias Klauser <tklauser@distanz.ch>2016-02-03 11:25:32 +0100
commit83c1bb0a8271338c57ab1c7d9d9bc3e53aafb314 (patch)
tree76d45c25cd953fadaed072847d953a9851d8f64f /trafgen_proto.c
parent686338ed02f66341daf508b2255f3dc1d5315f6d (diff)
trafgen: proto: Make proto_current_header() static
After commit 88b359d2aa7e ("trafgen: proto: Simplify getting lower protocol after init") proto_current_header() is no longer used outside trafgen_proto.c, so make it static. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_proto.c')
-rw-r--r--trafgen_proto.c2
1 files changed, 1 insertions, 1 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];