Skip to content

Commit 363d777

Browse files
fxlbguyharris
authored andcommitted
RSVP: Avoid reinventing nd_printjn()
1 parent c3a05ee commit 363d777

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

print-rsvp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ rsvp_obj_print(netdissect_options *ndo,
679679
u_short rsvp_obj_len,rsvp_obj_ctype,rsvp_obj_class_num;
680680
u_int obj_tlen,intserv_serv_tlen;
681681
int hexdump;
682-
u_int processed,padbytes,error_code,error_value,i,sigcheck;
682+
u_int processed,padbytes,error_code,error_value,sigcheck;
683683
u_int namelen;
684684

685685
u_int action, subchannel;
@@ -1202,8 +1202,7 @@ rsvp_obj_print(netdissect_options *ndo,
12021202
if (obj_tlen < 4+namelen)
12031203
goto obj_tooshort;
12041204
ND_PRINT("%s Session Name: ", indent);
1205-
for (i = 0; i < namelen; i++)
1206-
fn_print_char(ndo, GET_U_1(obj_tptr + 4 + i));
1205+
nd_printjn(ndo, obj_tptr + 4, namelen);
12071206
ND_PRINT("%s Setup Priority: %u, Holding Priority: %u, Flags: [%s] (%#x)",
12081207
indent,
12091208
GET_U_1(obj_tptr),

0 commit comments

Comments
 (0)