[asterisk-bugs] [JIRA] (DAHTOOL-90) Missing time64 support (small issue)
Sebastian Kemper (JIRA)
noreply at issues.asterisk.org
Sat Oct 23 12:27:49 CDT 2021
[ https://issues.asterisk.org/jira/browse/DAHTOOL-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebastian Kemper updated DAHTOOL-90:
------------------------------------
Attachment: 040-time64.patch
Attached a patch for this. I tried to follow https://wiki.asterisk.org/wiki/display/AST/Gerrit+Usage, but when I type
git review -s
I get this:
No '.gitreview' file found in this repository. We don't know where
your gerrit is.
Please manually create a remote named "gerrit" or rename the default
one and try again.
> 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
> Labels: patch
> Attachments: 040-time64.patch
>
>
> 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