summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-08-02 13:50:11 +0000
committerbapt <bapt@FreeBSD.org>2015-08-02 13:50:11 +0000
commit069c5cd07562677680f444ac15a1d69c99d0a480 (patch)
tree8359c35620930d8497df44628a95872420c29858 /usr.sbin/pw
parent2c026ebb5ca4e968e5f0fa0cb5317b99321a19fe (diff)
downloadFreeBSD-src-069c5cd07562677680f444ac15a1d69c99d0a480.zip
FreeBSD-src-069c5cd07562677680f444ac15a1d69c99d0a480.tar.gz
Fix build on 32bits
Diffstat (limited to 'usr.sbin/pw')
-rw-r--r--usr.sbin/pw/pw_conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pw/pw_conf.c b/usr.sbin/pw/pw_conf.c
index 087f48e..c79b60a 100644
--- a/usr.sbin/pw/pw_conf.c
+++ b/usr.sbin/pw/pw_conf.c
@@ -493,11 +493,11 @@ write_userconfig(struct userconf *cnf, const char *file)
quote = 0;
break;
case _UC_EXPIRE:
- sbuf_printf(buf, "%ld", cnf->expire_days);
+ sbuf_printf(buf, "%lld", (long long)cnf->expire_days);
quote = 0;
break;
case _UC_PASSWORD:
- sbuf_printf(buf, "%ld", cnf->password_days);
+ sbuf_printf(buf, "%lld", (long long)cnf->password_days);
quote = 0;
break;
case _UC_NONE:
OpenPOWER on IntegriCloud