Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss/services.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2007-02-17 13:07:16 +0100
committerArthur de Jong <arthur@arthurdejong.org>2007-02-17 13:07:16 +0100
commit1cc1884587bd156fb210c2a049ae12b763a2a9e1 (patch)
treec4ccbf52096cd4d424879384c6cbaed739c3dc44 /nss/services.c
parentd352025fc0e8fea2f7f166b3c3f945d3aa16efa3 (diff)
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
Diffstat (limited to 'nss/services.c')
-rw-r--r--nss/services.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nss/services.c b/nss/services.c
index 36d8f1c..f79012a 100644
--- a/nss/services.c
+++ b/nss/services.c
@@ -28,6 +28,7 @@
#include "prototypes.h"
#include "common.h"
+#include "compat/attrs.h"
static enum nss_status read_servent(
FILE *fp,struct servent *result,
@@ -63,7 +64,7 @@ enum nss_status _nss_ldap_getservbyport_r(int port,const char *protocol,struct s
/* thread-local file pointer to an ongoing request */
static __thread FILE *protoentfp;
-enum nss_status _nss_ldap_setservent(int stayopen)
+enum nss_status _nss_ldap_setservent(int UNUSED(stayopen))
{
NSS_SETENT(protoentfp,NSLCD_ACTION_SERVICE_ALL);
}