From 3e3e6d2ef4c1b120077378fe32dc0a88ee81f38e Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Mon, 30 Apr 2018 12:52:10 +0200 Subject: Rename the fn_printX() functions to nd_printX() The functions are: nd_print, nd_printztn, nd_printn and nd_printzp. Trying to make it clearer that they currently have to be used only on part of the packet buffer. Update some comments. --- print-rpki-rtr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print-rpki-rtr.c') diff --git a/print-rpki-rtr.c b/print-rpki-rtr.c index fa8ed9da..fcc2f1c2 100644 --- a/print-rpki-rtr.c +++ b/print-rpki-rtr.c @@ -353,9 +353,9 @@ rpki_rtr_pdu_print (netdissect_options *ndo, const u_char *tptr, const u_int len if (text_length) { if (pdu_len < tlen + text_length) goto invalid; - /* fn_printn() makes the bounds check */ + /* nd_printn() makes the bounds check */ ND_PRINT("%sError text: ", indent_string(indent+2)); - if (fn_printn(ndo, tptr + tlen, text_length, ndo->ndo_snapend)) + if (nd_printn(ndo, tptr + tlen, text_length, ndo->ndo_snapend)) goto trunc; } } -- cgit v1.2.1