From: "cron2 (Code Review)" Date: Tue, 26 Nov 2024 15:09:14 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., lstipakov@...277... Message-ID: <3f9d4beb14d34fee5c56e8f49cd92eae72d7f90d-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="q+UEG7TkCFQ="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Fix wrong doxygen comments List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos , stipa Cc: openvpn-devel --q+UEG7TkCFQ= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/820?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by stipa Change subject: Fix wrong doxygen comments ...................................................................... Fix wrong doxygen comments Add some missing "<" to trailing comments to make sure they apply to the correct line. Change-Id: Ib88ce925b20c5912de489ef1b62615c4b87d365c Signed-off-by: Frank Lichtenheld Acked-by: Lev Stipakov Message-Id: <20241126102651.18905-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29= 897.html Signed-off-by: Gert Doering --- M src/openvpn/options.c M src/openvpnmsica/msica_arg.h M src/openvpnmsica/openvpnmsica.c M src/openvpnmsica/openvpnmsica.h M src/tapctl/tap.h 5 files changed, 26 insertions(+), 23 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/20/820/2 diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 10ee9f6..043b240 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -929,10 +929,10 @@ struct pull_filter { -#define PUF_TYPE_UNDEF 0 /** undefined filter type */ -#define PUF_TYPE_ACCEPT 1 /** filter type to accept a matching option */ -#define PUF_TYPE_IGNORE 2 /** filter type to ignore a matching option */ -#define PUF_TYPE_REJECT 3 /** filter type to reject and trigger SIGUSR1= */ +#define PUF_TYPE_UNDEF 0 /**< undefined filter type */ +#define PUF_TYPE_ACCEPT 1 /**< filter type to accept a matching option = */ +#define PUF_TYPE_IGNORE 2 /**< filter type to ignore a matching option = */ +#define PUF_TYPE_REJECT 3 /**< filter type to reject and trigger SIGUSR= 1 */ int type; int size; char *pattern; @@ -3846,14 +3846,14 @@ * Check file/directory sanity * */ -#ifndef ENABLE_SMALL /** Expect people using the stripped down version to= know what they do */ +#ifndef ENABLE_SMALL /* Expect people using the stripped down version to = know what they do */ -#define CHKACC_FILE (1<<0) /** Check for a file/directory presence */ -#define CHKACC_DIRPATH (1<<1) /** Check for directory presence where a = file should reside */ -#define CHKACC_FILEXSTWR (1<<2) /** If file exists, is it writable? */ -#define CHKACC_ACPTSTDIN (1<<3) /** If filename is stdin, it's allowed an= d "exists" */ -#define CHKACC_PRIVATE (1<<4) /** Warn if this (private) file is group/= others accessible */ -#define CHKACC_ACCEPT_URI (1<<5) /** If filename is a URI, no check is don= e unless it starts with file: */ +#define CHKACC_FILE (1<<0) /**< Check for a file/directory presence = */ +#define CHKACC_DIRPATH (1<<1) /**< Check for directory presence where a= file should reside */ +#define CHKACC_FILEXSTWR (1<<2) /**< If file exists, is it writable? */ +#define CHKACC_ACPTSTDIN (1<<3) /**< If filename is stdin, it's allowed a= nd "exists" */ +#define CHKACC_PRIVATE (1<<4) /**< Warn if this (private) file is group= /others accessible */ +#define CHKACC_ACCEPT_URI (1<<5) /**< Do not check URIs, unless they start= with file: */ static bool check_file_access(const int type, const char *file, const int mode, const = char *opt) diff --git a/src/openvpnmsica/msica_arg.h b/src/openvpnmsica/msica_arg.h index 6cd272c..cec046f 100644 --- a/src/openvpnmsica/msica_arg.h +++ b/src/openvpnmsica/msica_arg.h @@ -37,8 +37,8 @@ */ struct msica_arg { - struct msica_arg *next; /** Pointer to the next argument in the sequen= ce */ - TCHAR val[]; /** Zero terminated argument string */ + struct msica_arg *next; /**< Pointer to the next argument in the seque= nce */ + TCHAR val[]; /**< Zero terminated argument string */ }; @@ -47,8 +47,8 @@ */ struct msica_arg_seq { - struct msica_arg *head; /** Pointer to the first argument in the seque= nce */ - struct msica_arg *tail; /** Pointer to the last argument in the sequen= ce */ + struct msica_arg *head; /**< Pointer to the first argument in the sequ= ence */ + struct msica_arg *tail; /**< Pointer to the last argument in the seque= nce */ }; diff --git a/src/openvpnmsica/openvpnmsica.c b/src/openvpnmsica/openvpnmsic= a.c index 5ffb5b3..154fff4 100644 --- a/src/openvpnmsica/openvpnmsica.c +++ b/src/openvpnmsica/openvpnmsica.c @@ -59,9 +59,10 @@ * Local constants */ -#define MSICA_ADAPTER_TICK_SIZE (16*1024) /** Amount of tick space to rese= rve for one TAP/TUN adapter creation/deletition. */ +/** Amount of tick space to reserve for one TAP/TUN adapter creation/delet= ition. */ +#define MSICA_ADAPTER_TICK_SIZE (16 * 1024) -#define FILE_NEED_REBOOT L".ovpn_need_reboot" +#define FILE_NEED_REBOOT L".ovpn_need_reboot" #define OPENVPN_CONNECT_ADAPTER_SUBSTR L"OpenVPN Connect" @@ -88,7 +89,9 @@ free(szSequence); if (uiResult !=3D ERROR_SUCCESS) { - SetLastError(uiResult); /* MSDN does not mention MsiSetProperty() = to set GetLastError(). But we do have an error code. Set last error manuall= y. */ + /* MSDN does not mention MsiSetProperty() to set GetLastError(). B= ut we do have an error + * code. Set last error manually. */ + SetLastError(uiResult); msg(M_NONFATAL | M_ERRNO, "%s: MsiSetProperty(\"%" PRIsLPTSTR "\")= failed", __FUNCTION__, szProperty); return uiResult; } diff --git a/src/openvpnmsica/openvpnmsica.h b/src/openvpnmsica/openvpnmsic= a.h index 6640d7e..7aacdf3 100644 --- a/src/openvpnmsica/openvpnmsica.h +++ b/src/openvpnmsica/openvpnmsica.h @@ -38,7 +38,7 @@ */ struct openvpnmsica_thread_data { - MSIHANDLE hInstall; /** Handle to the installation session. */ + MSIHANDLE hInstall; /**< Handle to the installation session. */ }; diff --git a/src/tapctl/tap.h b/src/tapctl/tap.h index 9c403cc..680c13a 100644 --- a/src/tapctl/tap.h +++ b/src/tapctl/tap.h @@ -135,11 +135,11 @@ */ struct tap_adapter_node { - GUID guid; /** Adapter GUID */ - LPTSTR szzHardwareIDs; /** Device hardware ID(s) */ - LPTSTR szName; /** Adapter name */ + GUID guid; /**< Adapter GUID */ + LPTSTR szzHardwareIDs; /**< Device hardware ID(s) */ + LPTSTR szName; /**< Adapter name */ - struct tap_adapter_node *pNext; /** Pointer to next adapter */ + struct tap_adapter_node *pNext; /**< Pointer to next adapter */ }; -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/820?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ib88ce925b20c5912de489ef1b62615c4b87d365c Gerrit-Change-Number: 820 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-Reviewer: stipa Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --q+UEG7TkCFQ= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #2 to the change originally cr= eated by flichtenheld.

View Change

The following approvals got outda= ted and were removed: Code-Review+2 by stipa

Fix wrong doxygen comments

Add some missing &= quot;<" to trailing comments
to make sure they apply to the corr= ect line.

Change-Id: Ib88ce925b20c5912de489ef1b62615c4b87d365c
Si= gned-off-by: Frank Lichtenheld <frank@...2641...>
Acked-by: Lev St= ipakov <lstipakov@...277...>
Message-Id: <20241126102651.18905-= 1-gert@...1296...>
URL: https://www.mail-archive.com/openvpn-devel@...1224...= sts.sourceforge.net/msg29897.html
Signed-off-by: Gert Doering <gert@...220...= ..1296...>
---
M src/openvpn/options.c
M src/openvpnmsica/msica= _arg.h
M src/openvpnmsica/openvpnmsica.c
M src/openvpnmsica/openvpnms= ica.h
M src/tapctl/tap.h
5 files changed, 26 insertions(+), 23 deleti= ons(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/chang=
es/20/820/2
diff --git a/src/openvpn/options.c b/src/openvpn/option=
s.c
index 10ee9f6..043b240 100644
--- a/src= /openvpn/options.c
+++ b/src/openvpn/options.c
@@ -929,10 +929,10 @@

struct pull_fi= lter
{
-#define PUF_TYPE_UNDEF 0 /** undefined filter type */
-#define PUF_TYPE_ACCEPT 1 /** filt= er type to accept a matching option */
-#define PUF_TYPE_IGNORE 2 /** filter type to ignore a m= atching option */
-#def= ine PUF_TYPE_REJECT 3 /** filter type to reject and trigger SIGUSR1 */
+#define PUF_TYPE_UNDE= F 0 /**< undefined filter type */
+#define PUF_TYPE_ACCEPT 1 /**< filter type to ac= cept a matching option */
+#define PUF_TYPE_IGNORE 2 /**< filter type to ignore a matching= option */
+#define P= UF_TYPE_REJECT 3 /**< filter type to reject and trigger SIGUSR1 */

int type;
int size;
char *pattern;
@@ -3846,14 +3846,14 @@
* Check file/directory sanity
*
*/=
-#ifndef ENABLE_SMALL = /** Expect people using the stripped down version to know what they do */<= /span>
+#ifndef ENABLE_SMALL= /* Expect people using the stripped down version to know what they do */<= /span>

-#def= ine CHKACC_FILE (1<<0) /** Check for a file/directory presence = */
-#define CHKACC_DIRP= ATH (1<<1) /** Check for directory presence where a file should re= side */
-#define CHKACC= _FILEXSTWR (1<<2) /** If file exists, is it writable? */
<= span style=3D"color: hsl(0, 100%, 40%);">-#define CHKACC_ACPTSTDIN (1<&l= t;3) /** If filename is stdin, it's allowed and "exists" */<= /span>
-#define CHKACC_PRIVATE= (1<<4) /** Warn if this (private) file is group/others accessible= */
-#define CHKACC_ACC= EPT_URI (1<<5) /** If filename is a URI, no check is done unless it s= tarts with file: */
+= #define CHKACC_FILE (1<<0) /**< Check for a file/directory p= resence */
+#define C= HKACC_DIRPATH (1<<1) /**< Check for directory presence where a = file should reside */
+#define CHKACC_FILEXSTWR (1<<2) /**< If file exists, is it writ= able? */
+#define CHK= ACC_ACPTSTDIN (1<<3) /**< If filename is stdin, it's allowed = and "exists" */
+#define CHKACC_PRIVATE (1<<4) /**< Warn if this (private)= file is group/others accessible */
+#define CHKACC_ACCEPT_URI (1<<5) /**< Do not check= URIs, unless they start with file: */

s= tatic bool
check_file_access(const int type, const char *f= ile, const int mode, const char *opt)
diff --git a/src/open= vpnmsica/msica_arg.h b/src/openvpnmsica/msica_arg.h
index 6= cd272c..cec046f 100644
--- a/src/openvpnmsica/msica_arg.h
+++ b/src/openvpnmsica/msica_arg.h
@@ -37,8 = +37,8 @@
*/
struct msica_arg
<= span> {

- struct msi= ca_arg *next; /** Pointer to the next argument in the sequence */- TCHAR val[]; /**= Zero terminated argument string */
+ struct msica_arg *next; /**< Pointer to the next arg= ument in the sequence */
+ TCHAR val[]; /**< Zero terminated argument string */=
};


@@= -47,8 +47,8 @@
*/
struct msica_arg_seq<= /span>
{
- = struct msica_arg *head; /** Pointer to the first argument in the sequence = */
- struct msica_ar= g *tail; /** Pointer to the last argument in the sequence */
+ struct msica_arg *head; /**<= ; Pointer to the first argument in the sequence */

+ struct msica_arg *tail; /**< Pointer = to the last argument in the sequence */
};


diff --git a/src/openvpnmsica/openvpnm= sica.c b/src/openvpnmsica/openvpnmsica.c
index 5ffb5b3..154= fff4 100644
--- a/src/openvpnmsica/openvpnmsica.c+++ b/src/openvpnmsica/openvpnmsica.c
@@ -59,9 +59,1= 0 @@
* Local constants
*/

-#define MSICA_ADA= PTER_TICK_SIZE (16*1024) /** Amount of tick space to reserve for one TAP/TU= N adapter creation/deletition. */
+/** Amount of tick space to reserve for one TAP/TUN adapter c= reation/deletition. */
-#define FILE_NEED_REBOOT = L".ovpn_need_reboot"
+#define FILE_NEED_REBOOT L".ovpn_need_= reboot"

#define OPENVPN_CONNECT_ADA= PTER_SUBSTR L"OpenVPN Connect"

= @@ -88,7 +89,9 @@
free(szSequence);
= if (uiResult !=3D ERROR_SUCCESS)
{
- SetLastError(uiResult); /* MSD= N does not mention MsiSetProperty() to set GetLastError(). But we do have a= n error code. Set last error manually. */
+ /* MSDN does not mention MsiSetProperty() to = set GetLastError(). But we do have an error
+ * code. Set last error manually. */=
+ SetLastError(uiRes= ult);
msg(M_NONFATAL | M_ERRNO, "%s: MsiSetPr= operty(\"%" PRIsLPTSTR "\") failed", __FUNCTION__,= szProperty);
return uiResult;
= }
diff --git a/src/openvpnmsica/openvpnmsica.h b/src/open= vpnmsica/openvpnmsica.h
index 6640d7e..7aacdf3 100644

--- a/src/openvpnmsica/openvpnmsica.h
+++ b/src/= openvpnmsica/openvpnmsica.h
@@ -38,7 +38,7 @@
*/
struct openvpnmsica_thread_data
{=
- MSIHANDLE hInstal= l; /** Handle to the installation session. */
+ MSIHANDLE hInstall; /**< Handle to the ins= tallation session. */
};


diff --git a/src/tapctl/tap.h b/src/tapctl/tap.h<= br>index 9c403cc..680c13a 100644
--- a/src/tapctl/tap= .h
+++ b/src/tapctl/tap.h
@@ -135,11 +135,1= 1 @@
*/
struct tap_adapter_node {
- GUID gu= id; /** Adapter GUID */
- LPTSTR szzHardwareIDs; /** Device hardware ID(s) */

- LPTSTR szName; = /** Adapter name */
+= GUID guid; /**< Adapter GUID */
+ LPTSTR szzHardwareIDs; /**< Device ha= rdware ID(s) */
+ = LPTSTR szName; /**< Adapter name */

= - struct tap_adapter_node *pNe= xt; /** Pointer to next adapter */
+ struct tap_adapter_node *pNext; /**< Pointer to next = adapter */
};


To view, visit change 820. To unsubscribe, or for he= lp writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib88ce925b20c5912de489ef1b62= 615c4b87d365c
Gerrit-Change-Number: 820
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-Reviewer: stipa <lstipakov@...277...= >
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--q+UEG7TkCFQ=--