X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/a9e42111da1bb839deccb2f393ee4bce9561c2d6..94c8e09a44c9a6334dc26371a49e3929fb4d0176:/print-ldp.c diff --git a/print-ldp.c b/print-ldp.c index f387affd..3f741d13 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -234,8 +234,8 @@ static int ldp_pdu_print(netdissect_options *, register const u_char *); static int ldp_tlv_print(netdissect_options *ndo, register const u_char *tptr, - u_short msg_tlen) { - + u_short msg_tlen) +{ struct ldp_tlv_header { uint8_t type[2]; uint8_t length[2]; @@ -545,8 +545,8 @@ badtlv: void ldp_print(netdissect_options *ndo, - register const u_char *pptr, register u_int len) { - + register const u_char *pptr, register u_int len) +{ int processed; while (len > (sizeof(struct ldp_common_header) + sizeof(struct ldp_msg_header))) { processed = ldp_pdu_print(ndo, pptr); @@ -559,8 +559,8 @@ ldp_print(netdissect_options *ndo, static int ldp_pdu_print(netdissect_options *ndo, - register const u_char *pptr) { - + register const u_char *pptr) +{ const struct ldp_common_header *ldp_com_header; const struct ldp_msg_header *ldp_msg_header; const u_char *tptr,*msg_tptr;