summaryrefslogtreecommitdiff
path: root/print-calm-fast.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2013-07-03 20:47:50 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2013-07-03 20:47:50 +0400
commit5eb92dbce1672327bf3cf2b7269c19d178a569a7 (patch)
treeb1ffa61586c69b15a7fc87f09cb6a12a5b5fddb6 /print-calm-fast.c
parent9a68bf303ada7a69d853eeefa09634a5a077e48e (diff)
downloadtcpdump-5eb92dbce1672327bf3cf2b7269c19d178a569a7.tar.gz
CALM FAST/GeoNet: fix Windows compile errors
It didn't work out-of-the box because my MSVC (v16 from Visual C Express 2010) isn't a C99 compiler; you cannot have code ahead of declarations.
Diffstat (limited to 'print-calm-fast.c')
-rw-r--r--print-calm-fast.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/print-calm-fast.c b/print-calm-fast.c
index ba9776ca..9824072b 100644
--- a/print-calm-fast.c
+++ b/print-calm-fast.c
@@ -42,13 +42,12 @@
void
calm_fast_print(netdissect_options *ndo, const u_char *eth, const u_char *bp, u_int length)
{
- printf("CALM FAST src:%s; ", etheraddr_string(eth+6));
-
int srcNwref = bp[0];
int dstNwref = bp[1];
length -= 2;
bp += 2;
+ printf("CALM FAST src:%s; ", etheraddr_string(eth+6));
printf("SrcNwref:%d; ", srcNwref);
printf("DstNwref:%d; ", dstNwref);