summaryrefslogtreecommitdiff
path: root/nss_tacplus.c
diff options
context:
space:
mode:
authorDave Olson <olson@cumulusnetworks.com>2016-08-19 23:57:42 -0700
committerDave Olson <olson@cumulusnetworks.com>2016-10-06 14:20:11 -0700
commit3279fbbb9e0f3744623fbb6a2d658d6ff5ab3f0d (patch)
tree4f2427bfc276ed768a462e91903b094ed68b0fd4 /nss_tacplus.c
parent678de9b4ac465247ac41d7018dea883d11e97e58 (diff)
downloadlibnss-tacplus-3279fbbb9e0f3744623fbb6a2d658d6ff5ab3f0d.tar.gz
libnss-tacplus-3279fbbb9e0f3744623fbb6a2d658d6ff5ab3f0d.zip
Fix 32-bit system build error
size_t is only an int on 32 bit ARM, so %ld gives an error. Add a cast.
Diffstat (limited to 'nss_tacplus.c')
-rw-r--r--nss_tacplus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nss_tacplus.c b/nss_tacplus.c
index f925124..4b3bf75 100644
--- a/nss_tacplus.c
+++ b/nss_tacplus.c
@@ -212,7 +212,7 @@ pwcopy(char *buf, size_t len, struct passwd *srcpw, struct passwd *destpw,
if(needlen > len) {
if(debug)
syslog(LOG_DEBUG, "%s provided password buffer too small (%ld<%d)",
- nssname, len, needlen);
+ nssname, (long)len, needlen);
return 1;
}