]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Use intmax_t rather than long long
authorBaptiste Daroussin <bapt@FreeBSD.org>
Sun, 2 Aug 2015 19:49:24 +0000 (19:49 +0000)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Sun, 2 Aug 2015 19:49:24 +0000 (19:49 +0000)
pw/pw_conf.c

index c79b60aa3f953ec8972d35b7d33d8bc96364545a..e9606b4e6a2f0563354b0223c4501955b67a73bf 100644 (file)
@@ -493,11 +493,11 @@ write_userconfig(struct userconf *cnf, const char *file)
                        quote = 0;
                        break;
                case _UC_EXPIRE:
-                       sbuf_printf(buf, "%lld", (long long)cnf->expire_days);
+                       sbuf_printf(buf, "%jd", (intmax_t)cnf->expire_days);
                        quote = 0;
                        break;
                case _UC_PASSWORD:
-                       sbuf_printf(buf, "%lld", (long long)cnf->password_days);
+                       sbuf_printf(buf, "%jd", (intmax_t)cnf->password_days);
                        quote = 0;
                        break;
                case _UC_NONE: