| Message ID | 20171012103448.7632-1-simon@rozman.si |
|---|---|
| State | Accepted |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director4.mail.ord1d.rsapps.net ([172.30.157.10]) by backend31.mail.ord1d.rsapps.net (Dovecot) with LMTP id eVuWGHBF31nwKQAAgoeIoA for <patchwork@openvpn.net>; Thu, 12 Oct 2017 06:35:28 -0400 Received: from proxy13.mail.ord1d.rsapps.net ([172.30.157.58]) by director4.mail.ord1d.rsapps.net (Dovecot) with LMTP id oVuHGHBF31nwYAAAHDmxtw ; Thu, 12 Oct 2017 06:35:28 -0400 Received: from smtp21.gate.ord1d ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy13.mail.ord1d.rsapps.net (Dovecot) with LMTP id SW9WAxhC31kcaAAAgjf6aA ; Thu, 12 Oct 2017 06:35:28 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-MessageSniffer-Scan-Result: 0 X-MessageSniffer-Rules: 0-298-1001-1200-w 0-298-1001-1564-w 0-298-0-8471-f X-CMAE-Scan-Result: 0 X-CNFS-Analysis: v=2.2 cv=ZeFfDYdA c=1 sm=1 tr=0 a=Q8DxjiC8O3VT/NpP1XjEZQ==:117 a=Q8DxjiC8O3VT/NpP1XjEZQ==:17 a=kj9zAlcOel0A:10 a=02M-m0pO-4AA:10 a=WiVod9pSvdkA:10 a=9sSjY8p1AAAA:8 a=P_JWiMecAAAA:8 a=FP58Ms26AAAA:8 a=vHAA7dTlehMFdk_ZWt4A:9 a=CjuIK1q_8ugA:10 a=-FEs8UIgK8oA:10 a=NWVoK91CQyQA:10 a=ub54wNWiXv_DzeFsgEJW:22 a=D0-HAvA3Hk9NMREbgwuX:22 X-Orig-To: justin@openvpn.net X-Originating-Ip: [216.34.181.88] Authentication-Results: smtp21.gate.ord1d.rsapps.net; iprev=pass policy.iprev="216.34.181.88"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dkim=fail (signature verification failed) header.d=rozman.si; dmarc=fail (p=none; dis=none) header.from=rozman.si X-Classification-ID: 0f90a4c6-af39-11e7-94c0-525400a98691-1-1 Received: from [216.34.181.88] ([216.34.181.88:16652] helo=lists.sourceforge.net) by smtp21.gate.ord1d.rsapps.net (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) (ecelerity 4.2.1.56364 r(Core:4.2.1.14)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 4B/60-27445-E654FD95; Thu, 12 Oct 2017 06:35:26 -0400 Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1e2apV-0005Xp-0k; Thu, 12 Oct 2017 10:35:05 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from <simon@rozman.si>) id 1e2apS-0005Xi-Cu for openvpn-devel@lists.sourceforge.net; Thu, 12 Oct 2017 10:35:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-Id:Date:Subject:Cc:To:From; bh=cH3HEqrDVavuKDJ2zJq5dBndcKH+Wq61mA6xOXc6a/Q=; b=Pg703Xy6suhEifQ6CLwbss5ooih52kPgBWiom81HKAievHGtW2nj759PPxalucesqqO+3l8LwJfKrEuAXMq7yNhqzoGVOwzs8NcMBcMfBCihq7126QoFkJMAsXaUlPzdOqCpBWOMhUvl0V3jT6x97rs3hH9FEKSzh7cw2NcLWnE=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x; h=Message-Id:Date:Subject:Cc:To:From; bh=cH3HEqrDVavuKDJ2zJq5dBndcKH+Wq61mA6xOXc6a/Q=; b=JXYJ9SjBH02eeenODBwwiUErJiGUsBrGO/VvPV9wziw+3JBXE8ojxbdtngjZe89BDghm62/nO0Y43ymH4SEXa4RzJ6nOmWVuzeHJqJ8WGMcDKkE1+cPp5YW5v0xVMStXHf2v9nIWNsZnQBu0Xlf8a0UKutnq53MTHvdRAADhu2w=; Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of rozman.si designates 89.212.80.145 as permitted sender) client-ip=89.212.80.145; envelope-from=simon@rozman.si; helo=amebis01.amebis.si; Received: from amebis01.amebis.si ([89.212.80.145]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1e2apP-0007vo-FD for openvpn-devel@lists.sourceforge.net; Thu, 12 Oct 2017 10:35:02 +0000 Received: from SR5.amebis.doma (sr5.amebis.doma [192.168.100.81]) by amebis01.amebis.si (Postfix) with ESMTP id 9CEAB407BF; Thu, 12 Oct 2017 12:34:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rozman.si; s=default; t=1507804490; bh=ANAwoed1kVOgsddtB8/5UBCuuZMgnWuOo9KZVAPOHvc=; h=From:To:Cc:Subject:Date:Message-Id; b=BqDuLrYryMO7Wq+GAi/NQOm8M2PXegOf/Ytd++TQBgLJugf2sUNBttUzMEioZBUMQ SjqDRIQnx/7sDBI7o8oire8yBiwBv/UjI6Fr8zwhVxHMCca4zwjbkilnLsdon7sHLr 8iFP9sqA0AUXrg2Fs9T34qXfu3RnHWquCxxfhe3o= From: Simon Rozman <simon@rozman.si> To: openvpn-devel@lists.sourceforge.net Date: Thu, 12 Oct 2017 12:34:48 +0200 Message-Id: <20171012103448.7632-1-simon@rozman.si> X-Mailer: git-send-email 2.9.0.windows.1 X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [89.212.80.145 listed in list.dnswl.org] -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1e2apP-0007vo-FD Subject: [Openvpn-devel] [PATCH] Fix local #include to use quoted form X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openvpn-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel> List-Post: <mailto:openvpn-devel@lists.sourceforge.net> List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox |
| Series |
[Openvpn-devel] Fix local #include to use quoted form
|
|
Commit Message
Simon Rozman
Oct. 11, 2017, 11:34 p.m. UTC
.h include files from the same folder or addressed relatively to the same folder should be #included using quoted form in MSVC. The angled form is reserved for include files from folders specified using /I path. Using angled form, MSVC fails to locate local #include file, unless current folder is added to the include search path: /I . --- src/openvpnserv/common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Comments
Hi, On Thu, Oct 12, 2017 at 6:34 AM, Simon Rozman <simon@rozman.si> wrote: > .h include files from the same folder or addressed relatively to the > same folder should be #included using quoted form in MSVC. The angled > form is reserved for include files from folders specified using /I > path. > > Using angled form, MSVC fails to locate local #include file, unless > current folder is added to the include search path: /I . > --- > src/openvpnserv/common.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/src/openvpnserv/common.c b/src/openvpnserv/common.c > index 0c9098f..e77d7ab 100644 > --- a/src/openvpnserv/common.c > +++ b/src/openvpnserv/common.c > @@ -21,8 +21,9 @@ > * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > */ > > -#include <service.h> > -#include <validate.h> > +#include "service.h" > +#include "validate.h" > + > /* > * These are necessary due to certain buggy implementations of > (v)snprintf, > * that don't guarantee null termination for size > 0. > In mingw builds it works either way as our Makefile includes -I ./ as the first search path. But conventionally quoted path is the right thing to use here. ACK. Selva <div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 12, 2017 at 6:34 AM, Simon Rozman <span dir="ltr"><<a href="mailto:simon@rozman.si" target="_blank">simon@rozman.si</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">.h include files from the same folder or addressed relatively to the<br> same folder should be #included using quoted form in MSVC. The angled<br> form is reserved for include files from folders specified using /I<br> path.<br> <br> Using angled form, MSVC fails to locate local #include file, unless<br> current folder is added to the include search path: /I .<br> ---<br> src/openvpnserv/common.c | 5 +++--<br> 1 file changed, 3 insertions(+), 2 deletions(-)<br> <br> diff --git a/src/openvpnserv/common.c b/src/openvpnserv/common.c<br> index 0c9098f..e77d7ab 100644<br> --- a/src/openvpnserv/common.c<br> +++ b/src/openvpnserv/common.c<br> @@ -21,8 +21,9 @@<br> * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.<br> */<br> <br> -#include <service.h><br> -#include <validate.h><br> +#include "service.h"<br> +#include "validate.h"<br> +<br> /*<br> * These are necessary due to certain buggy implementations of (v)snprintf,<br> * that don't guarantee null termination for size > 0.<br></blockquote><div><br></div><div>In mingw builds it works either way as our Makefile includes -I ./ as the first search path.</div><div>But conventionally quoted path is the right thing to use here.</div><div><br></div><div>ACK.</div><div><br></div><div>Selva</div></div></div></div> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Your patch has been applied to the master and release/2.4 branch.
commit d2a7415f265aea5e0f04d80e48af506e153ba0f4 (master)
commit c6af7006219ec03ece4545355251e79b47d56e8c (release/2.4)
Author: Simon Rozman
Date: Thu Oct 12 12:34:48 2017 +0200
Fix local #include to use quoted form
Acked-by: Selva Nair <selva.nair@gmail.com>
Message-Id: <20171012103448.7632-1-simon@rozman.si>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15622.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
diff --git a/src/openvpnserv/common.c b/src/openvpnserv/common.c index 0c9098f..e77d7ab 100644 --- a/src/openvpnserv/common.c +++ b/src/openvpnserv/common.c @@ -21,8 +21,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include <service.h> -#include <validate.h> +#include "service.h" +#include "validate.h" + /* * These are necessary due to certain buggy implementations of (v)snprintf, * that don't guarantee null termination for size > 0.