CLEANUP: quic: Rename several <buf> variables in quic_frame.(c|h)

Most of the function in quic_frame.c and quic_frame.h manipulate <buf> buffer
position variables which have nothing to see with struct buffer variables.
Rename them to <pos>

Should be backported to 2.7.
This commit is contained in:
Frédéric Lécaille 2023-04-24 17:45:01 +02:00
parent d19a02a40e
commit 1bc6e318f0
2 changed files with 280 additions and 279 deletions

View File

@ -32,12 +32,12 @@
const char *quic_frame_type_string(enum quic_frame_type ft);
int qc_build_frm(unsigned char **buf, const unsigned char *end,
int qc_build_frm(unsigned char **pos, const unsigned char *end,
struct quic_frame *frm, struct quic_tx_packet *pkt,
struct quic_conn *conn);
int qc_parse_frm(struct quic_frame *frm, struct quic_rx_packet *pkt,
const unsigned char **buf, const unsigned char *end,
const unsigned char **pos, const unsigned char *end,
struct quic_conn *conn);
/* Return the length of <frm> frame if succeeded, -1 if not (unknown frames

File diff suppressed because it is too large Load Diff