[asterisk-bugs] [JIRA] (DAHTOOL-90) Missing time64 support (small issue)

Sebastian Kemper (JIRA) noreply at issues.asterisk.org
Mon Nov 1 06:54: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-2.patch

Hi all, this is an alternative patch, along the lines of patch set 4 in https://gerrit.asterisk.org/c/asterisk/+/16621

> 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-2.patch, 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