From 1cc1884587bd156fb210c2a049ae12b763a2a9e1 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 17 Feb 2007 12:07:16 +0000 Subject: add gcc attributes to some functions and parameters git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@250 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/rpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nss/rpc.c') diff --git a/nss/rpc.c b/nss/rpc.c index 08657eb..ff1745f 100644 --- a/nss/rpc.c +++ b/nss/rpc.c @@ -28,6 +28,7 @@ #include "prototypes.h" #include "common.h" +#include "compat/attrs.h" static enum nss_status read_rpcent( FILE *fp,struct rpcent *result, @@ -58,7 +59,7 @@ enum nss_status _nss_ldap_getrpcbynumber_r(int number,struct rpcent *result,char /* thread-local file pointer to an ongoing request */ static __thread FILE *protoentfp; -enum nss_status _nss_ldap_setrpcent(int stayopen) +enum nss_status _nss_ldap_setrpcent(int UNUSED(stayopen)) { NSS_SETENT(protoentfp,NSLCD_ACTION_RPC_ALL); } -- cgit v1.2.3