From: "flichtenheld (Code Review)" Date: Wed, 8 Jan 2025 12:58:54 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <7e1b31a7327a4b8e943e562661a71bbeb2c6e609-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Sjv83kwSBiA="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Post tchar.h removal cleanup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --Sjv83kwSBiA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/854?usp=3Demail to review the following change. Change subject: Post tchar.h removal cleanup ...................................................................... Post tchar.h removal cleanup Change-Id: Ib3a166ead912beb2a591105c84d96d342664c05f Signed-off-by: Frank Lichtenheld --- M src/openvpnserv/service.h M src/tapctl/basic.h 2 files changed, 4 insertions(+), 11 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/54/854/1 diff --git a/src/openvpnserv/service.h b/src/openvpnserv/service.h index daa48d7..9f3c150 100644 --- a/src/openvpnserv/service.h +++ b/src/openvpnserv/service.h @@ -24,11 +24,6 @@ #ifndef _SERVICE_H #define _SERVICE_H -/* We do not support non-unicode builds */ -#ifndef UNICODE -#define UNICODE -#endif - #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/src/tapctl/basic.h b/src/tapctl/basic.h index ca5c6d4..49a3cf6 100644 --- a/src/tapctl/basic.h +++ b/src/tapctl/basic.h @@ -22,13 +22,11 @@ #ifndef BASIC_H #define BASIC_H -#ifdef _UNICODE -#define PRIsLPWSTR "ls" -#define PRIsLPOLESTR "ls" -#else -#define PRIsLPWSTR "s" -#define PRIsLPOLESTR "ls" +/* We do not support non-unicode builds */ +#ifndef UNICODE +#define UNICODE #endif + #define PRIXGUID "{%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hh= X%02hhX%02hhX%02hhX}" #define PRIGUID_PARAM(g) \ (g).Data1, (g).Data2, (g).Data3, (g).Data4[0], (g).Data4[1], (g).Data4= [2], (g).Data4[3], (g).Data4[4], (g).Data4[5], (g).Data4[6], (g).Data4[7] -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/854?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: Ib3a166ead912beb2a591105c84d96d342664c05f Gerrit-Change-Number: 854 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-MessageType: newchange --Sjv83kwSBiA= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

Vi= ew Change

Post tchar.h removal cleanup

Change-Id: Ib3a166ead912b= eb2a591105c84d96d342664c05f
Signed-off-by: Frank Lichtenheld <frank@...220...= ..2641...>
---
M src/openvpnserv/service.h
M src/tapctl/basic.h=
2 files changed, 4 insertions(+), 11 deletions(-)

git pull ss=
h://gerrit.openvpn.net:29418/openvpn refs/changes/54/854/1
diff --=
git a/src/openvpnserv/service.h b/src/openvpnserv/service.h
index daa48d7..9f3c150 100644
--- a/src/openvpnserv/servic= e.h
+++ b/src/openvpnserv/service.h
@@ -24,= 11 +24,6 @@
#ifndef _SERVICE_H
#define _S= ERVICE_H

-/* We do not support non-unicode builds */
-#ifndef UNICODE
-#define UNICODE
-#endif
-<= /span>
#ifdef HAVE_CONFIG_H
#include "confi= g.h"
#endif
diff --git a/src/tapctl/b= asic.h b/src/tapctl/basic.h
index ca5c6d4..49a3cf6 100644
--- a/src/tapctl/basic.h
+++ b/src/tapctl/ba= sic.h
@@ -22,13 +22,11 @@
#ifndef BASIC_H<= /span>
#define BASIC_H

-#ifdef _UNICODE
-#define PRIsLPWSTR "ls"
-#define PRIsLPOLESTR "ls&qu= ot;

-#else
-#define PRIsLPWSTR "s&qu= ot;

-#define PRIsLPOLES= TR "ls"
= +/* We do not support non-unicode builds */
+#ifndef UNICODE
+#define UNICODE
#endif
+

#define PRIXGUID = "{%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX= %02hhX}"
#define PRIGUID_PARAM(g) \
= (g).Data1, (g).Data2, (g).Data3, (g).Data4[0], (g).Data4[1], (g).Data4[= 2], (g).Data4[3], (g).Data4[4], (g).Data4[5], (g).Data4[6], (g).Data4[7]

To view, visit change 854. To unsubscribe, or = for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib3a166ead912beb2a591105c84d= 96d342664c05f
Gerrit-Change-Number: 854
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-MessageType: newchange
--Sjv83kwSBiA=--