Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2006-11-10 13:44:12 +0100
committerArthur de Jong <arthur@arthurdejong.org>2006-11-10 13:44:12 +0100
commit58a82990fc8284539113f0b4b05002a434eeeb59 (patch)
tree1d055fa8d7ccb8b941013f277bf11413c3b5c353 /nss
parent1d1d54c0f25b59a360a61f411232e9716b70a20f (diff)
add test code for host database and add const to function definition
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@78 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss')
-rw-r--r--nss/exports.h2
-rw-r--r--nss/hosts.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/nss/exports.h b/nss/exports.h
index 6cddd1c..5f8b123 100644
--- a/nss/exports.h
+++ b/nss/exports.h
@@ -70,7 +70,7 @@ enum nss_status _nss_ldap_initgroups_dyn(const char *user,gid_t group,long int *
/* hosts - host names and numbers */
enum nss_status _nss_ldap_gethostbyname_r(const char *name,struct hostent *result,char *buffer,size_t buflen,int *errnop,int *h_errnop);
enum nss_status _nss_ldap_gethostbyname2_r(const char *name,int af,struct hostent *result,char *buffer,size_t buflen,int *errnop,int *h_errnop);
-enum nss_status _nss_ldap_gethostbyaddr_r(struct in_addr *addr,int len,int type,struct hostent *result,char *buffer,size_t buflen,int *errnop,int *h_errnop);
+enum nss_status _nss_ldap_gethostbyaddr_r(const struct in_addr *addr,int len,int type,struct hostent *result,char *buffer,size_t buflen,int *errnop,int *h_errnop);
enum nss_status _nss_ldap_sethostent(void);
enum nss_status _nss_ldap_gethostent_r(struct hostent *result,char *buffer,size_t buflen,int *errnop,int *h_errnop);
enum nss_status _nss_ldap_endhostent(void);
diff --git a/nss/hosts.c b/nss/hosts.c
index 2894300..8b9f660 100644
--- a/nss/hosts.c
+++ b/nss/hosts.c
@@ -151,7 +151,7 @@ enum nss_status _nss_ldap_gethostbyname_r(
buffer,buflen - OUT - buffer to store allocated stuff on
errnop,h_errnop - OUT - for reporting errors */
enum nss_status _nss_ldap_gethostbyaddr_r(
- struct in_addr *addr,int len,int af,struct hostent *result,
+ const struct in_addr *addr,int len,int af,struct hostent *result,
char *buffer,size_t buflen,int *errnop,int *h_errnop)
{
FILE *fp;