aboutsummaryrefslogtreecommitdiffstats
path: root/tests/osmo-pcap-test/l4_tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/osmo-pcap-test/l4_tcp.c')
-rw-r--r--tests/osmo-pcap-test/l4_tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/osmo-pcap-test/l4_tcp.c b/tests/osmo-pcap-test/l4_tcp.c
index 1e024b5..f7aedbd 100644
--- a/tests/osmo-pcap-test/l4_tcp.c
+++ b/tests/osmo-pcap-test/l4_tcp.c
@@ -13,14 +13,14 @@
#include "proto.h"
-static int l4_tcp_pkt_hdr_len(const uint8_t *pkt)
+static unsigned int l4_tcp_pkt_hdr_len(const uint8_t *pkt)
{
const struct tcphdr *tcph = (const struct tcphdr *)pkt;
return tcph->doff << 2;
}
-static int l4_tcp_pkt_no_data(const uint8_t *pkt)
+static unsigned int l4_tcp_pkt_no_data(const uint8_t *pkt)
{
const struct tcphdr *tcph = (const struct tcphdr *)pkt;
return tcph->syn || tcph->fin || tcph->rst || !tcph->psh;