diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2015-03-05 10:33:43 +0000 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2015-03-05 10:35:03 +0000 |
commit | 60a835d80f4b6c12dbe2d38fe4ca2de16f3302dc (patch) | |
tree | 4c0142a37b3b6007826183ffc37b3e57f9237f12 /print-ldp.c | |
parent | bc183f0882ee2080e5888a428e5b0823380fc18a (diff) | |
download | tcpdump-60a835d80f4b6c12dbe2d38fe4ca2de16f3302dc.tar.gz |
clean K&R style up in function declarations a bit
The function body should have its opening brace on the next line.
Diffstat (limited to 'print-ldp.c')
-rw-r--r-- | print-ldp.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; |