diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-08-02 13:50:11 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-08-02 13:50:11 +0000 |
commit | d8b569c5d79b241766aa4c1e90780a2af8bd1e7b (patch) | |
tree | 6609d041edfbbb35f8fc95156fd9b9ad4b324bda /pw | |
parent | d3fd4c928063a9eba830f906f9131de24eb284ef (diff) | |
download | pw-darwin-d8b569c5d79b241766aa4c1e90780a2af8bd1e7b.tar.gz pw-darwin-d8b569c5d79b241766aa4c1e90780a2af8bd1e7b.tar.zst pw-darwin-d8b569c5d79b241766aa4c1e90780a2af8bd1e7b.zip |
Fix build on 32bits
Diffstat (limited to 'pw')
-rw-r--r-- | pw/pw_conf.c | 4 |
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: |