From: Steffan Karger Date: Tue, 24 Nov 2015 14:00:35 +0000 (+0100) Subject: remove nonsense const specifier in nonfatal() return value X-Git-Tag: v2.4_alpha1~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f544e388527066dcf17ea0e257b9182a7286e821;p=thirdparty%2Fopenvpn.git remove nonsense const specifier in nonfatal() return value Return values are rvalues, and can not be changed anyway. Adding const does not make sense here at all. (What was I thinking...?) Signed-off-by: Steffan Karger Acked-by: Gert Doering Message-Id: <1448373635-21649-1-git-send-email-steffan.karger@fox-it.com> URL: http://article.gmane.org/gmane.network.openvpn.devel/10583 Signed-off-by: Gert Doering --- diff --git a/src/openvpn/error.h b/src/openvpn/error.h index e6c55f02b..1dc086407 100644 --- a/src/openvpn/error.h +++ b/src/openvpn/error.h @@ -353,7 +353,7 @@ ignore_sys_error (const int err) } /** Convert fatal errors to nonfatal, don't touch other errors */ -static inline const unsigned int +static inline unsigned int nonfatal(const unsigned int err) { return err & M_FATAL ? (err ^ M_FATAL) | M_NONFATAL : err; }