]> git.ipfire.org Git - thirdparty/openvpn.git/commit
use M_ERRNO instead of explicitly printing errno
authorAntonio Quartulli <antonio@openvpn.net>
Thu, 13 Jul 2017 08:05:26 +0000 (16:05 +0800)
committerGert Doering <gert@greenie.muc.de>
Mon, 17 Jul 2017 12:15:46 +0000 (14:15 +0200)
commite80af83b361b7555a0c3369fe243c19f6c60bd60
treefdd23d809dc5904014c7074dda977970a63a96b6
parent67e3f0280937757ce716211829c82c3795d21ad1
use M_ERRNO instead of explicitly printing errno

the msg() function will print the errno for us when
provided with the M_ERRNO flag.

Therefore, don't bother printing errno explicitly and always
pass M_ERRNO to msg().

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20170713080527.13299-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15056.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 56b396dcbc34ffd3cddeb2e65ae55c40eae51831)
src/openvpn/manage.c
src/openvpn/misc.c
src/openvpn/mtcp.c
src/openvpn/mudp.c
src/openvpn/multi.c
src/openvpn/options.c
src/openvpn/socket.c
src/openvpn/status.c
src/openvpn/tun.c