]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Use C standard compliant format specs in wprintf functions
authorSelva Nair <selva.nair@gmail.com>
Sat, 22 May 2021 03:32:31 +0000 (23:32 -0400)
committerGert Doering <gert@greenie.muc.de>
Tue, 25 May 2021 20:26:06 +0000 (22:26 +0200)
commitea2b153c35723fc2bbcf54ef191a6f0e0ee5371a
tree54e8dcc2e097e5153c29bcb25d9d96869b97a84c
parent455d0997931f968ed8c42812106c44941c4ca69b
Use C standard compliant format specs in wprintf functions

- Use %ls for wchar_t * and %hs for char * variables

This makes it possible to build correctly with or without
__USE_MINGW_ANIS_STDIO defined. When this define is not used
all printf/scanf family functions are resolved from the windows
runtime MSVCRT.  Newer (since version 8) mingw-w64 versions have
started automatically enabling this macro under some feature
sets such as _GNU_SOURCE and C99.

The changes should not affect MSVC builds as Windows support
these format specifications.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <20210522033232.20548-2-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22436.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.c
src/openvpn/win32.c
src/openvpnserv/common.c
src/openvpnserv/interactive.c
src/openvpnserv/service.c
src/openvpnserv/validate.c