From patchwork Wed Aug 17 22:05:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 2692 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director15.mail.ord1d.rsapps.net ([172.27.255.9]) by backend30.mail.ord1d.rsapps.net with LMTP id qJ/5Ntol/mJ0NQAAIUCqbw (envelope-from ) for ; Thu, 18 Aug 2022 07:43:22 -0400 Received: from proxy16.mail.iad3a.rsapps.net ([172.27.255.9]) by director15.mail.ord1d.rsapps.net with LMTP id YAOYNtol/mJEOAAAIcMcQg (envelope-from ) for ; Thu, 18 Aug 2022 07:43:22 -0400 Received: from smtp29.gate.iad3a ([172.27.255.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy16.mail.iad3a.rsapps.net with LMTPS id 0JgkMdol/mLeXwAADc5QwQ (envelope-from ) for ; Thu, 18 Aug 2022 07:43:22 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: patchwork@openvpn.net X-Originating-Ip: [192.26.174.232] Authentication-Results: smtp29.gate.iad3a.rsapps.net; iprev=pass policy.iprev="192.26.174.232"; spf=pass smtp.mailfrom="arne@rfc2549.org" smtp.helo="mail.blinkt.de"; dkim=none (message not signed) header.d=none; dmarc=fail (p=none; dis=none) header.from=unstable.cc X-Suspicious-Flag: NO X-Classification-ID: f6081346-1eea-11ed-b7ca-52540071c87c-1-1 Received: from [192.26.174.232] ([192.26.174.232:28185] helo=mail.blinkt.de) by smtp29.gate.iad3a.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id D7/37-00730-AD52EF26; Thu, 18 Aug 2022 07:43:22 -0400 Received: from [195.70.183.100] (helo=[192.168.12.111]) by mail.blinkt.de with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.95 (FreeBSD)) (envelope-from ) id 1oOdvl-0000V0-GV for patchwork@openvpn.net; Thu, 18 Aug 2022 13:43:21 +0200 Resent-From: Arne Schwabe Resent-To: patchwork@openvpn.net Resent-Date: Thu, 18 Aug 2022 13:43:20 +0200 Resent-Message-ID: <2e216de0-b192-b0d2-a5b5-abe6d6978366@rfc2549.org> Received: from mail.blinkt.de ([unix socket]) by mail.blinkt.de (Cyrus 3.4.4) with LMTPA; Thu, 18 Aug 2022 10:08:47 +0200 X-Cyrus-Session-Id: mail.blinkt.de-1660810127-98022-1-9470179282693320466 X-Sieve: CMU Sieve 3.0 Received: from lists.sourceforge.net ([216.105.38.7]) by mail.blinkt.de with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95 (FreeBSD)) (envelope-from ) id 1oOaa5-000PVB-Tw for arne@rfc2549.org; Thu, 18 Aug 2022 10:08:47 +0200 Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1oOaXk-0007qS-SF; Thu, 18 Aug 2022 08:06:20 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1oOaXi-0007qL-Bz for openvpn-devel@lists.sourceforge.net; Thu, 18 Aug 2022 08:06:18 +0000 Received: from wilbur.contactoffice.com ([212.3.242.68]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1oOaXh-0005GD-Ao for openvpn-devel@lists.sourceforge.net; Thu, 18 Aug 2022 08:06:18 +0000 Received: from smtpauth2.co-bxl (smtpauth2.co-bxl [10.2.0.24]) by wilbur.contactoffice.com (Postfix) with ESMTP id F03E0431F; Thu, 18 Aug 2022 10:06:10 +0200 (CEST) Received: by smtp.mailfence.com with ESMTPSA ; Thu, 18 Aug 2022 10:06:08 +0200 (CEST) From: Antonio Quartulli To: openvpn-devel@lists.sourceforge.net Date: Thu, 18 Aug 2022 10:05:50 +0200 Message-Id: <20220818080550.177771-1-a@unstable.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-ContactOffice-Account: com:375058688 X-Headers-End: 1oOaXh-0005GD-Ao Subject: [Openvpn-devel] [PATCH] ssh_util: fix prototype style X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Antonio Quartulli Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-Spam-Bar: + X-getmail-retrieved-from-mailbox: Inbox Function prototypes should have the return type on the same line as the function name itself. Fix this in ssl_util.h. Signed-off-by: Antonio Quartulli Acked-by: Gert Doering --- src/openvpn/ssl_util.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/openvpn/ssl_util.h b/src/openvpn/ssl_util.h index f38294c1..3695ca3c 100644 --- a/src/openvpn/ssl_util.h +++ b/src/openvpn/ssl_util.h @@ -41,10 +41,8 @@ * @return The content of the variable as NULL terminated string or NULL if the * variable cannot be found. */ -char * -extract_var_peer_info(const char *peer_info, - const char *var, - struct gc_arena *gc); +char *extract_var_peer_info(const char *peer_info, const char *var, + struct gc_arena *gc); /** * Extracts the IV_PROTO variable and returns its value or 0 @@ -52,8 +50,7 @@ extract_var_peer_info(const char *peer_info, * * @param peer_info peer info string to search for IV_PROTO */ -unsigned int -extract_iv_proto(const char *peer_info); +unsigned int extract_iv_proto(const char *peer_info); /** * Takes a locally produced OCC string for TLS server mode and modifies as @@ -67,6 +64,6 @@ extract_iv_proto(const char *peer_info); * @param gc gc_arena to allocate the returned string in * @return the modified string or options on error */ -const char * -options_string_compat_lzo(const char *options, struct gc_arena *gc); +const char *options_string_compat_lzo(const char *options, struct gc_arena *gc); + #endif