summaryrefslogtreecommitdiffstats
path: root/pw/pw_conf.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-08-02 13:50:11 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-08-02 13:50:11 +0000
commitd8b569c5d79b241766aa4c1e90780a2af8bd1e7b (patch)
tree6609d041edfbbb35f8fc95156fd9b9ad4b324bda /pw/pw_conf.c
parentd3fd4c928063a9eba830f906f9131de24eb284ef (diff)
downloadpw-darwin-d8b569c5d79b241766aa4c1e90780a2af8bd1e7b.tar.gz
pw-darwin-d8b569c5d79b241766aa4c1e90780a2af8bd1e7b.tar.zst
pw-darwin-d8b569c5d79b241766aa4c1e90780a2af8bd1e7b.zip
Fix build on 32bits
Diffstat (limited to 'pw/pw_conf.c')
-rw-r--r--pw/pw_conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pw/pw_conf.c b/pw/pw_conf.c
index 087f48e..c79b60a 100644
--- a/pw/pw_conf.c
+++ b/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: