[Git][NTPsec/ntpsec][master] Another printf bug
Hal Murray (@hal.murray)
gitlab at mg.gitlab.com
Thu Feb 13 10:00:57 UTC 2025
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
303e0710 by Hal Murray at 2025-02-13T01:59:06-08:00
Another printf bug
- - - - -
1 changed file:
- ntpfrob/tickadj.c
Changes:
=====================================
ntpfrob/tickadj.c
=====================================
@@ -77,9 +77,9 @@ void tickadj(const bool json_b, const int newtick)
txc.time_tick, txc.tickadj);
#else
if (json_b)
- printf("{\"tick\":%ld}\n", txc.tick);
+ printf("{\"tick\":%lld}\n", (long long)txc.tick);
else
- printf("tick = %ld\n", txc.tick);
+ printf("tick = %lld\n", (long long)txc.tick);
#endif /* HAVE_STRUCT_TIMEX_TIME_TICK */
}
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/303e0710706a463df8a6c6acdd403e7d202cf554
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/303e0710706a463df8a6c6acdd403e7d202cf554
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20250213/0da32621/attachment.htm>
More information about the vc
mailing list