]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: quic: Comments fix for qc_prep_(app)pkts() functions
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 10 Mar 2022 16:42:58 +0000 (17:42 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 11 Mar 2022 10:37:31 +0000 (11:37 +0100)
Fix the comments for these two functions about their returned values.

src/xprt_quic.c

index 9b2e38c55b1928c1fe29c9814bb8b316f9eba07e..7f3b02aebb2fb4e7edeeea31614b86fd6a1b337f 100644 (file)
@@ -2456,7 +2456,8 @@ static inline void qc_set_dg(struct cbuf *cbuf,
  * <frms> list of prebuilt frames.
  * A header made of two fields is added to each datagram: the datagram length followed
  * by the address of the first packet in this datagram.
- * Returns 1 if succeeded, or 0 if something wrong happened.
+ * Returns the number of bytes prepared in packets if succeeded (may be 0),
+ * or -1 if something wrong happened.
  */
 static int qc_prep_app_pkts(struct quic_conn *qc, struct qring *qr,
                             struct list *frms)
@@ -2576,7 +2577,8 @@ static int qc_prep_app_pkts(struct quic_conn *qc, struct qring *qr,
  * several packets in the same datagram. A header made of two fields is added
  * to each datagram: the datagram length followed by the address of the first
  * packet in this datagram.
- * Returns 1 if succeeded, or 0 if something wrong happened.
+ * Returns the number of bytes prepared in packets if succeeded (may be 0),
+ * or -1 if something wrong happened.
  */
 static int qc_prep_pkts(struct quic_conn *qc, struct qring *qr,
                         enum quic_tls_enc_level tel,