summaryrefslogtreecommitdiff
path: root/print-dsa.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-08-01 14:05:59 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-08-06 22:36:16 +0200
commit0c93b15d38b3f63047344fcb2ea920e73498bb3d (patch)
treef35738ae5f17b87357aecbe5b4927910ac392143 /print-dsa.c
parent6855c11117b46c93c5ea83b2a9436e67f4dae254 (diff)
downloadtcpdump-0c93b15d38b3f63047344fcb2ea920e73498bb3d.tar.gz
Rework "Update more link-layer dissectors to void functions"
It's a follow-up to commit 81dbf4a0b05092760d0ff0cdd48c692e4769ba99. There is no need to update ether_print(), ether_common_print() and ether_switch_tag_print() to void functions: back to u_int functions. There is also no need to add a flag parameter to ether_print(), ether_common_print() and ether_switch_tag_print(): Remove it.
Diffstat (limited to 'print-dsa.c')
-rw-r--r--print-dsa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/print-dsa.c b/print-dsa.c
index aec58f48..e45dc53f 100644
--- a/print-dsa.c
+++ b/print-dsa.c
@@ -203,8 +203,8 @@ dsa_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char
u_int length = h->len;
ndo->ndo_protocol = "dsa";
- ndo->ndo_ll_hdr_len += 0;
- ether_switch_tag_print(ndo, p, length, caplen, dsa_tag_print, DSA_LEN, TRUE);
+ ndo->ndo_ll_hdr_len +=
+ ether_switch_tag_print(ndo, p, length, caplen, dsa_tag_print, DSA_LEN);
}
void
@@ -214,6 +214,6 @@ edsa_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char
u_int length = h->len;
ndo->ndo_protocol = "edsa";
- ndo->ndo_ll_hdr_len += 0;
- ether_switch_tag_print(ndo, p, length, caplen, edsa_tag_print, EDSA_LEN, TRUE);
+ ndo->ndo_ll_hdr_len +=
+ ether_switch_tag_print(ndo, p, length, caplen, edsa_tag_print, EDSA_LEN);
}