diff options
author | Sascha Wildner <swildner@sourceforge.net> | 2011-12-07 10:42:12 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-12-07 10:42:12 -0800 |
commit | 684955d58611ee94eccdc34e82b32e676337188c (patch) | |
tree | c9880eca11f989098ee2df7b9896dac1961b874a /print-lspping.c | |
parent | 5d52dbf4c7340b9e79f280b2b444c9b652a3458f (diff) | |
download | tcpdump-684955d58611ee94eccdc34e82b32e676337188c.tar.gz |
Fix a bunch of "sizeof(sizeof(XXX))".
In some places, there was one too many levels of sizeof() -
sizeof(sizeof(XXX)) is sizeof(size_t), but we wanted the size of type
XXX.
Reviewed-By: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'print-lspping.c')
-rw-r--r-- | print-lspping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-lspping.c b/print-lspping.c index 6958bdac..2ca57fb0 100644 --- a/print-lspping.c +++ b/print-lspping.c @@ -878,7 +878,7 @@ lspping_print(register const u_char *pptr, register u_int len) { } /* do we want to see an additionally tlv hexdump ? */ if (vflag > 1 || tlv_hexdump==TRUE) - print_unknown_data(tptr+sizeof(sizeof(struct lspping_tlv_header)),"\n\t ", + print_unknown_data(tptr+sizeof(struct lspping_tlv_header),"\n\t ", lspping_tlv_len); |