From: Mike Frysinger <vapier@gentoo.org>
To: Felix Janda <felix.janda@posteo.de>
Cc: libtirpc-devel@lists.sourceforge.net, linux-nfs@vger.kernel.org
Subject: Re: [Libtirpc-devel] [PATCH 7/7] Deduplicate extern "C" blocks
Date: Sun, 17 Apr 2016 12:18:13 -0400 [thread overview]
Message-ID: <20160417161813.GG5369@vapier.lan> (raw)
In-Reply-To: <20160417091113.GF2737@nyan>
[-- Attachment #1: Type: text/plain, Size: 1172 bytes --]
On 17 Apr 2016 11:11, Felix Janda wrote:
> Signed-off-by: Felix Janda <felix.janda@posteo.de>
> ---
> tirpc/rpc/auth.h | 62 +++++++--------------------------------------------
> tirpc/rpc/auth_des.h | 14 +++++-------
> tirpc/rpc/clnt.h | 50 +++++++----------------------------------
> tirpc/rpc/clnt_soc.h | 27 +++++-----------------
> tirpc/rpc/des_crypt.h | 20 +++++------------
> tirpc/rpc/rpc.h | 14 +++++-------
> tirpc/rpc/svc.h | 55 ++++++---------------------------------------
> tirpc/rpc/svc_soc.h | 38 +++++--------------------------
> tirpc/rpc/xdr.h | 15 +++++--------
> 9 files changed, 54 insertions(+), 241 deletions(-)
>
> diff --git a/tirpc/rpc/auth.h b/tirpc/rpc/auth.h
> index 5f8ea72..f743034 100644
> --- a/tirpc/rpc/auth.h
> +++ b/tirpc/rpc/auth.h
> @@ -46,6 +46,10 @@
> #ifndef _TIRPC_AUTH_H
> #define _TIRPC_AUTH_H
>
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
> #include <rpc/xdr.h>
> #include <rpc/clnt_stat.h>
> #include <sys/socket.h>
it isn't normal to wrap includes in extern C. header files should only
be wrapping their own local content.
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-04-17 16:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-17 9:11 [PATCH 7/7] Deduplicate extern "C" blocks Felix Janda
2016-04-17 16:18 ` Mike Frysinger [this message]
2016-04-17 17:43 ` [PATCH v2] " Felix Janda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160417161813.GG5369@vapier.lan \
--to=vapier@gentoo.org \
--cc=felix.janda@posteo.de \
--cc=libtirpc-devel@lists.sourceforge.net \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.