diff --git a/include/rpc/auth.h b/include/rpc/auth.h index 1f9771780639..5833c02e429f 100644 --- a/include/rpc/auth.h +++ b/include/rpc/auth.h @@ -51,10 +51,6 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif - #define MAX_AUTH_BYTES 400 #define MAXNETNAMELEN 255 /* maximum length of network user's name */ @@ -370,8 +366,4 @@ __END_DECLS #define RPCSEC_GSS_KRB5I 390004 #define RPCSEC_GSS_KRB5P 390005 -#ifdef __cplusplus -} -#endif - #endif /* !_RPC_AUTH_H */ diff --git a/include/rpc/auth_unix.h b/include/rpc/auth_unix.h index 5a26c649eea8..08e156900db1 100644 --- a/include/rpc/auth_unix.h +++ b/include/rpc/auth_unix.h @@ -48,10 +48,6 @@ #define _RPC_AUTH_UNIX_H #include -#ifdef __cplusplus -extern "C" { -#endif - /* The machine name is part of a credential; it may not exceed 255 bytes */ #define MAX_MACHINE_NAME 255 @@ -85,8 +81,4 @@ struct short_hand_verf { struct opaque_auth new_cred; }; -#ifdef __cplusplus -} -#endif - #endif /* !_RPC_AUTH_UNIX_H */ diff --git a/include/rpc/clnt.h b/include/rpc/clnt.h index 46790c46a635..1c85a4a73688 100644 --- a/include/rpc/clnt.h +++ b/include/rpc/clnt.h @@ -64,10 +64,6 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif - /* * Well-known IPV6 RPC broadcast address. */ @@ -555,10 +551,6 @@ extern enum clnt_stat rpc_broadcast_exp(const rpcprog_t, const rpcvers_t, const int, const char *); __END_DECLS -#ifdef __cplusplus -} -#endif - /* For backward compatibility */ #include diff --git a/include/rpc/clnt_soc.h b/include/rpc/clnt_soc.h index 484dc7c303d7..1e7a0dea59e4 100644 --- a/include/rpc/clnt_soc.h +++ b/include/rpc/clnt_soc.h @@ -49,10 +49,6 @@ #include -#ifdef __cplusplus -extern "C" { -#endif - #define UDPMSGSIZE 8800 /* rpc imposed limit on udp msg size */ /* @@ -107,8 +103,4 @@ extern CLIENT *clntudp_bufcreate(struct sockaddr_in *, u_long, u_long, struct timeval, int *, u_int, u_int); __END_DECLS -#ifdef __cplusplus -} -#endif - #endif /* _RPC_CLNT_SOC_H */ diff --git a/include/rpc/des_crypt.h b/include/rpc/des_crypt.h index f38f4f42e67b..a5df606e9e0b 100644 --- a/include/rpc/des_crypt.h +++ b/include/rpc/des_crypt.h @@ -47,10 +47,6 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif - #define DES_MAXDATA 8192 /* max bytes encrypted in one call */ #define DES_DIRMASK (1 << 0) #define DES_ENCRYPT (0*DES_DIRMASK) /* Encrypt */ @@ -107,8 +103,4 @@ __BEGIN_DECLS void des_setparity( char *); __END_DECLS -#ifdef __cplusplus -} -#endif - #endif /* _DES_DES_CRYPT_H */ diff --git a/include/rpc/nettype.h b/include/rpc/nettype.h index e046b745b042..5e26268a68da 100644 --- a/include/rpc/nettype.h +++ b/include/rpc/nettype.h @@ -44,10 +44,6 @@ #include -#ifdef __cplusplus -extern "C" { -#endif - #define _RPC_NONE 0 #define _RPC_NETPATH 1 #define _RPC_VISIBLE 2 @@ -65,8 +61,4 @@ extern struct netconfig *__rpc_getconf(void *); extern struct netconfig *__rpc_getconfip(const char *); __END_DECLS -#ifdef __cplusplus -} -#endif - #endif /* !_RPC_NETTYPE_H */ diff --git a/include/rpc/pmap_clnt.h b/include/rpc/pmap_clnt.h index e2e5f7980546..89f1614ab9c9 100644 --- a/include/rpc/pmap_clnt.h +++ b/include/rpc/pmap_clnt.h @@ -66,10 +66,6 @@ #define _RPC_PMAP_CLNT_H_ #include -#ifdef __cplusplus -extern "C" { -#endif - __BEGIN_DECLS extern bool_t pmap_set(u_long, u_long, int, int); extern bool_t pmap_unset(u_long, u_long); @@ -87,8 +83,4 @@ extern u_short pmap_getport(struct sockaddr_in *, u_long, u_long, u_int); __END_DECLS -#ifdef __cplusplus -} -#endif - #endif /* !_RPC_PMAP_CLNT_H_ */ diff --git a/include/rpc/pmap_rmt.h b/include/rpc/pmap_rmt.h index 9d5c00cf53b2..5c0806681e9e 100644 --- a/include/rpc/pmap_rmt.h +++ b/include/rpc/pmap_rmt.h @@ -44,10 +44,6 @@ #define _RPC_PMAP_RMT_H #include -#ifdef __cplusplus -extern "C" { -#endif - struct rmtcallargs { u_long prog, vers, proc, arglen; caddr_t args_ptr; @@ -66,8 +62,4 @@ extern bool_t xdr_rmtcall_args(XDR *, struct rmtcallargs *); extern bool_t xdr_rmtcallres(XDR *, struct rmtcallres *); __END_DECLS -#ifdef __cplusplus -} -#endif - #endif /* !_RPC_PMAP_RMT_H */ diff --git a/include/rpc/rpc_com.h b/include/rpc/rpc_com.h index 2060c3a779fb..122fe7e4baca 100644 --- a/include/rpc/rpc_com.h +++ b/include/rpc/rpc_com.h @@ -42,13 +42,9 @@ #ifndef _RPC_RPCCOM_H #define _RPC_RPCCOM_H -/* #pragma ident "@(#)rpc_com.h 1.11 93/07/05 SMI" */ - #include -#ifdef __cplusplus -extern "C" { -#endif +/* #pragma ident "@(#)rpc_com.h 1.11 93/07/05 SMI" */ /* * The max size of the transport, if the size cannot be determined @@ -84,8 +80,4 @@ char *_get_next_token(char *, int); __END_DECLS -#ifdef __cplusplus -} -#endif - #endif /* _RPC_RPCCOM_H */ diff --git a/include/rpc/rpc_msg.h b/include/rpc/rpc_msg.h index 453d549f527a..354b34147677 100644 --- a/include/rpc/rpc_msg.h +++ b/include/rpc/rpc_msg.h @@ -43,10 +43,6 @@ #ifndef _RPC_RPC_MSG_H #define _RPC_RPC_MSG_H -#ifdef __cplusplus -extern "C" { -#endif - #define RPC_MSG_VERSION ((u_int32_t) 2) #define RPC_SERVICE_PORT ((u_short) 2048) @@ -215,8 +211,4 @@ extern bool_t xdr_rejected_reply(XDR *, struct rejected_reply *); extern void _seterr_reply(struct rpc_msg *, struct rpc_err *); __END_DECLS -#ifdef __cplusplus -} -#endif - #endif /* !_RPC_RPC_MSG_H */ diff --git a/include/rpc/rpcb_clnt.h b/include/rpc/rpcb_clnt.h index 0cfa21f667c4..fa64a853f90d 100644 --- a/include/rpc/rpcb_clnt.h +++ b/include/rpc/rpcb_clnt.h @@ -61,10 +61,6 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif - __BEGIN_DECLS extern bool_t rpcb_set(const rpcprog_t, const rpcvers_t, const struct netconfig *, const struct netbuf *); @@ -86,8 +82,4 @@ extern char *rpcb_taddr2uaddr(struct netconfig *, struct netbuf *); extern struct netbuf *rpcb_uaddr2taddr(struct netconfig *, char *); __END_DECLS -#ifdef __cplusplus -} -#endif - #endif /* !_RPC_RPCB_CLNT_H */ diff --git a/include/rpc/rpcent.h b/include/rpc/rpcent.h index 0aea0150ec9d..876b488b2b1b 100644 --- a/include/rpc/rpcent.h +++ b/include/rpc/rpcent.h @@ -45,9 +45,6 @@ /* #pragma ident "@(#)rpcent.h 1.13 94/04/25 SMI" */ /* @(#)rpcent.h 1.1 88/12/06 SMI */ -#ifdef __cplusplus -extern "C" { -#endif struct rpcent { char *r_name; /* name of server for this rpc program */ @@ -67,8 +64,4 @@ extern void setrpcent(int); extern void endrpcent(void); __END_DECLS -#ifdef __cplusplus -} -#endif - #endif /* !_RPC_CENT_H */ diff --git a/include/rpc/rpcsec_gss.h b/include/rpc/rpcsec_gss.h index 42b155f43d52..ccd346fd4564 100644 --- a/include/rpc/rpcsec_gss.h +++ b/include/rpc/rpcsec_gss.h @@ -29,10 +29,6 @@ #ifndef _RPCSEC_GSS_H #define _RPCSEC_GSS_H -#ifdef __cplusplus -extern "C" { -#endif - #include #ifndef MAX_GSS_MECH @@ -180,8 +176,4 @@ bool_t __rpc_gss_set_error(int rpc_gss_error, int system_error); __END_DECLS -#ifdef __cplusplus -} -#endif - #endif /* !_RPCSEC_GSS_H */ diff --git a/include/rpc/svc.h b/include/rpc/svc.h index 7625f6d25872..4a3833c7cad5 100644 --- a/include/rpc/svc.h +++ b/include/rpc/svc.h @@ -65,10 +65,6 @@ * parameters, struct svc_req * and SVCXPRT *, defined below. */ -#ifdef __cplusplus -extern "C" { -#endif - /* * Service control requests */ @@ -471,9 +467,6 @@ int __rpc_get_local_uid(SVCXPRT *_transp, uid_t *_uid); __END_DECLS -#ifdef __cplusplus -} -#endif /* for backward compatibility */ #include diff --git a/include/rpc/svc_soc.h b/include/rpc/svc_soc.h index 09704df426e4..6c528dbc95c6 100644 --- a/include/rpc/svc_soc.h +++ b/include/rpc/svc_soc.h @@ -49,10 +49,6 @@ * with TS-RPC */ -#ifdef __cplusplus -extern "C" { -#endif - /* * Approved way of getting address of caller */ @@ -117,8 +113,4 @@ __BEGIN_DECLS extern SVCXPRT *svcfd_create(int, u_int, u_int); __END_DECLS -#ifdef __cplusplus -} -#endif - #endif /* !_RPC_SVC_SOC_H */ diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h index 1ef569a8e532..ada5c5bdb1b8 100644 --- a/include/rpc/xdr.h +++ b/include/rpc/xdr.h @@ -43,10 +43,6 @@ #define _RPC_XDR_H #include -#ifdef __cplusplus -extern "C" { -#endif - /* * XDR provides a conventional way for converting between C data * types and an external bit-string representation. Library supplied @@ -370,8 +366,4 @@ extern bool_t xdrrec_eof(XDR *); extern u_int xdrrec_readbytes(XDR *, caddr_t, u_int); __END_DECLS -#ifdef __cplusplus -} -#endif - #endif /* !_RPC_XDR_H */