summaryrefslogtreecommitdiff
path: root/nslcd
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-05-18 14:21:48 +0000
committerArthur de Jong <arthur@arthurdejong.org>2012-05-18 14:21:48 +0000
commitc23fb324eae950a912d39a0bb1287efa9b444329 (patch)
tree21f5a47d35234d5d20c1df76c2c418f45706a3ef /nslcd
parent4bb884423460d712041c87f353843512300a1c66 (diff)
get rid of a few compiler warnings on FreeBSD
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1693 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd')
-rw-r--r--nslcd/myldap.c2
-rw-r--r--nslcd/nslcd.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c
index e7b27e7..c7d0d76 100644
--- a/nslcd/myldap.c
+++ b/nslcd/myldap.c
@@ -519,7 +519,7 @@ static int set_socket_timeout(LDAP *ld,time_t sec,suseconds_t usec)
struct timeval tv;
int rc=LDAP_SUCCESS;
int sd;
- log_log(LOG_DEBUG,"set_socket_timeout(%lu,%lu)",sec,usec);
+ log_log(LOG_DEBUG,"set_socket_timeout(%lu,%lu)",(unsigned long)sec,(unsigned long)usec);
/* get the socket */
if ((rc=ldap_get_option(ld,LDAP_OPT_DESC,&sd))!=LDAP_SUCCESS)
{
diff --git a/nslcd/nslcd.c b/nslcd/nslcd.c
index b92ea12..732775c 100644
--- a/nslcd/nslcd.c
+++ b/nslcd/nslcd.c
@@ -49,6 +49,9 @@
#include <nss.h>
#endif /* HAVE_NSS_H */
#include <pthread.h>
+#ifdef HAVE_PTHREAD_NP_H
+#include <pthread_np.h>
+#endif /* HAVE_PTHREAD_NP_H */
#ifndef HAVE_GETOPT_LONG
#include "compat/getopt_long.h"
#endif /* not HAVE_GETOPT_LONG */