]> 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 11:43:58 +0000 (13:43 +0200)
commit56b396dcbc34ffd3cddeb2e65ae55c40eae51831
tree4d33bdf5e706ec1f14ca736aa0b785ef8937a3ec
parentf9ebfe1b5a011e55fb87a5026b1897c8ffb8f75e
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>
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