]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix new doxygen warnings about using @return in void functions master
authorFrank Lichtenheld <frank@lichtenheld.com>
Wed, 2 Jul 2025 15:04:27 +0000 (17:04 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 2 Jul 2025 15:08:16 +0000 (17:08 +0200)
These seem to have been added in a more recent doxygen version
than I previously tested with.

Change-Id: Ia2b3eda18bd6dbce6c470037c7a01097e8147c29
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Antonio Quartulli <antonio@mandelbit.com>
Message-Id: <20250702150433.3871-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32027.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/crypto.h
src/openvpn/fragment.h
src/openvpn/push.c

index 5bd1ad52ae07fd8aaa72700b4f1659458f2d552d..68ad901df304e6f7fd748a2860ff896a28b675e0 100644 (file)
@@ -467,12 +467,12 @@ void free_key_ctx_bi(struct key_ctx_bi *ctx);
  * If an error occurs during processing, then the \a buf %buffer is set to
  * empty.
  *
- * @param buf          - The %buffer containing the packet on which to
+ * @param[in,out] buf  - The %buffer containing the packet on which to
  *                       perform security operations.
  * @param work         - An initialized working %buffer.
  * @param opt          - The security parameter state for this VPN tunnel.
  *
- * @return This function returns void.\n On return, the \a buf argument
+ * @note On return, the \a buf argument
  *     will point to the resulting %buffer.  This %buffer will either
  *     contain the processed packet ready for sending, or be empty if an
  *     error occurred.
index 5003c96941601c39a6cdbea535fc15736a255991..cc9605796798b18539ab6f112433e231471b268a 100644 (file)
@@ -309,7 +309,7 @@ void fragment_free(struct fragment_master *f);
  *
  * @param f            - The \c fragment_master structure for this VPN
  *                       tunnel.
- * @param buf          - A pointer to the buffer structure containing the
+ * @param[in,out] buf  - A pointer to the buffer structure containing the
  *                       incoming packet.  This pointer will have been
  *                       modified on return either to point to a
  *                       completely reassembled packet, or to have length
@@ -317,7 +317,8 @@ void fragment_free(struct fragment_master *f);
  * @param frame        - The packet geometry parameters for this VPN
  *                       tunnel.
  *
- * @return Void.\n On return, the \a buf argument will point to a buffer.
+ * @note On return the \a buf argument buffer will be modified
+ *     to communicate the result of the function.
  *     The buffer will have nonzero length if the incoming packet passed
  *     to this function was whole and unfragmented, or if it was the final
  *     part of a fragmented packet thereby completing reassembly.  On the
@@ -363,14 +364,15 @@ void fragment_incoming(struct fragment_master *f, struct buffer *buf,
  *
  * @param f            - The \c fragment_master structure for this VPN
  *                       tunnel.
- * @param buf          - A pointer to the buffer structure containing the
+ * @param[in,out] buf  - A pointer to the buffer structure containing the
  *                       outgoing packet.  This pointer will be modified
  *                       to point to a whole unfragmented packet or to the
  *                       first part of a fragmented packet on return.
  * @param frame        - The packet geometry parameters for this VPN
  *                       tunnel.
  *
- * @return Void.\n On return, the \a buf argument will point to a buffer.
+ * @note On return the \a buf argument buffer will be modified
+ *     to communicate the result of the function.
  *     This buffer contains either the whole original outgoing packet if
  *     fragmentation was not necessary, or the first part of the
  *     fragmented outgoing packet if fragmentation was necessary. In both
index fe289f1d352b2a85fcd22eda17916c9c928f48b5..ad8fa3d7263ad7c7225a64ed30f26d039249aab8 100644 (file)
@@ -582,8 +582,6 @@ send_push_request(struct context *c)
  * @param tls_multi     tls multi context of VPN tunnel
  * @param gc            gc arena for allocating push options
  * @param push_list     push list to where options are added
- *
- * @return true on success, false on failure.
  */
 void
 prepare_auth_token_push_reply(struct tls_multi *tls_multi, struct gc_arena *gc,