]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: quic: complete comment on qcs_try_to_consume
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 29 Mar 2022 12:50:25 +0000 (14:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 30 Mar 2022 14:12:18 +0000 (16:12 +0200)
Specify the return value usage.

src/xprt_quic.c

index 0af176ec1fdbf67244be6f8b06775b4b2ec23e10..56c688515fb0a05985d0b82ed76bcf64e43c158d 100644 (file)
@@ -1400,7 +1400,8 @@ static int qc_pkt_decrypt(struct quic_rx_packet *pkt, struct quic_enc_level *qel
 }
 
 /* Remove from <qcs> stream the acknowledged frames.
- * Never fails.
+ *
+ * Returns 1 if at least one frame was removed else 0.
  */
 static int qcs_try_to_consume(struct qcs *qcs)
 {