summaryrefslogtreecommitdiffstats
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
commit6bb6a54271ea20fd8467bd7913107446d05d5fd4 (patch)
tree42b34c6571a2b4f6930590bd8a98f081314e6598
parent9f8dd284c157358a0c2865ced5fbd8a110f5f779 (diff)
downloadpw-darwin-6bb6a54271ea20fd8467bd7913107446d05d5fd4.tar.gz
pw-darwin-6bb6a54271ea20fd8467bd7913107446d05d5fd4.tar.zst
pw-darwin-6bb6a54271ea20fd8467bd7913107446d05d5fd4.zip
Fix build on 32bits
-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: