[asterisk-bugs] [JIRA] (DAHTOOL-90) Missing time64 support (small issue)
Sebastian Kemper (JIRA)
noreply at issues.asterisk.org
Sat Oct 23 12:21:49 CDT 2021
Sebastian Kemper created DAHTOOL-90:
---------------------------------------
Summary: Missing time64 support (small issue)
Key: DAHTOOL-90
URL: https://issues.asterisk.org/jira/browse/DAHTOOL-90
Project: DAHDI-Tools
Issue Type: Bug
Security Level: None
Components: Utilities
Affects Versions: 3.1.0
Environment: libc musl 1.2
Reporter: Sebastian Kemper
Assignee: Duncan Patterson
libcs are implementing changes to fix the year 2038 issue on 32 bit platforms (see [1]). musl libc already went ahead and implemented it, starting with musl-1.2.0 (see [2]).
Compiling timertest.c now yields this warning:
timertest.c: In function 'main':
timertest.c:75:42: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
75 | printf("Timer Expired (%ld ms)!\n", (now.tv_sec - orig.tv_sec) * 1000 + (now.tv_usec - orig.tv_usec) / 1000);
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long int long long int
| %lld
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list