summaryrefslogtreecommitdiffstats
path: root/contrib/tcpdump/print-slow.c
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2011-12-28 05:58:31 +0000
committerkevlo <kevlo@FreeBSD.org>2011-12-28 05:58:31 +0000
commit8ccf51483cf161d511c2f467a442e19ece12d97b (patch)
tree83c4baca6473b88f9b093c452bc921f30b26fe0f /contrib/tcpdump/print-slow.c
parentef46f37483114f91ba855f1036a2f9078e9dea81 (diff)
downloadFreeBSD-src-8ccf51483cf161d511c2f467a442e19ece12d97b.zip
FreeBSD-src-8ccf51483cf161d511c2f467a442e19ece12d97b.tar.gz
Fix incorrect uses of sizeof().
The details of the fix can be found in the tcpdump git repository: commit 684955d58611ee94eccdc34e82b32e676337188c
Diffstat (limited to 'contrib/tcpdump/print-slow.c')
-rw-r--r--contrib/tcpdump/print-slow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tcpdump/print-slow.c b/contrib/tcpdump/print-slow.c
index eaf94ed..fdfefcc 100644
--- a/contrib/tcpdump/print-slow.c
+++ b/contrib/tcpdump/print-slow.c
@@ -368,7 +368,7 @@ void slow_marker_lacp_print(register const u_char *tptr, register u_int tlen) {
tlv_header->type != LACP_TLV_TERMINATOR &&
tlv_header->type != MARKER_TLV_TERMINATOR) {
printf("\n\t-----trailing data-----");
- print_unknown_data(tptr+sizeof(sizeof(struct tlv_header_t)),"\n\t ",tlen);
+ print_unknown_data(tptr+sizeof(struct tlv_header_t),"\n\t ",tlen);
return;
}
@@ -441,7 +441,7 @@ void slow_marker_lacp_print(register const u_char *tptr, register u_int tlen) {
}
/* do we want to see an additional hexdump ? */
if (vflag > 1) {
- print_unknown_data(tptr+sizeof(sizeof(struct tlv_header_t)),"\n\t ",
+ print_unknown_data(tptr+sizeof(struct tlv_header_t),"\n\t ",
tlv_len-sizeof(struct tlv_header_t));
}
OpenPOWER on IntegriCloud