References: <20171202134541.7688-1-a@...2181...> <20171202134541.7688-4-a@...2181...> From: Steffan Karger Message-ID: <0a218899-3373-57b5-9513-a29c55482bd7@...1856...> Date: Sun, 3 Dec 2017 15:17:04 +0100 MIME-Version: 1.0 In-Reply-To: <20171202134541.7688-4-a@...2181...> Content-Language: en-US Subject: Re: [Openvpn-devel] [PATCH 4/7] Remove SSL_LIB_VER_STR List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: openvpn-devel@lists.sourceforge.net Hi, On 02-12-17 14:45, Antonio Quartulli wrote: > SSL_LIB_VER_STR made sense only when ENABLE_CRYPTO also > existed. It can now be removed and thus simplify the code. > > Signed-off-by: Antonio Quartulli > --- > src/openvpn/options.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/src/openvpn/options.c b/src/openvpn/options.c > index 9d9798f7..3f9ca710 100644 > --- a/src/openvpn/options.c > +++ b/src/openvpn/options.c > @@ -4087,16 +4087,15 @@ show_windows_version(const unsigned int flags) > void > show_library_versions(const unsigned int flags) > { > -#define SSL_LIB_VER_STR get_ssl_library_version() > #ifdef ENABLE_LZO > #define LZO_LIB_VER_STR ", LZO ", lzo_version_string() > #else > #define LZO_LIB_VER_STR "", "" > #endif > > - msg(flags, "library versions: %s%s%s", SSL_LIB_VER_STR, LZO_LIB_VER_STR); > + msg(flags, "library versions: %s%s%s", get_ssl_library_version(), > + LZO_LIB_VER_STR); > > -#undef SSL_LIB_VER_STR > #undef LZO_LIB_VER_STR > } > Yes, better. Acked-by: Steffan Karger -Steffan