Skip to content

Fix compile errors in OpenWrt 23.03

Andreas Gnau requested to merge agnau-fix-22.03-compile-errors into devel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
commit 34eeb30ed57f13a4d69b0e7abb97b7f2871f963d (HEAD -> agnau-fix-22.03-compile-errors) ┃
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date:   Thu Jun 23 12:31:21 2022 +0200

    timer: Use uloop_timeout_remaining64
    
    Fixes error: 'uloop_timeout_remaining' is deprecated: use
    uloop_timeout_remaining64 [-Werror=deprecated-declarations]
    
    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
commit 718cff9c3d08fa54b151d1f7662473234c6071e4 ┃
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date:   Thu Jun 23 13:16:17 2022 +0200

    cmdufrag: Fix compile warnings/error due to 64bit time
    
    Fix compile warnings/errors introduced by 64-bit time values most
    probably coming from musl-upgrade.
    
    * cmdufrag.c:293:17: error: format '%lu' expects argument of type 'long
      unsigned int', but argument 14 has type 'time_t' {aka 'long long int'}
      [-Werror=format=]
    
    * cmdufrag.c:293:17: error: format '%lu' expects argument of type 'long
      unsigned int', but argument 15 has type 'suseconds_t' {aka 'long long
      int'} [-Werror=format=]
    
    * cmdufrag.c:432:43: error: format '%lu' expects argument of type 'long
      unsigned int', but argument 3 has type 'time_t' {aka 'long long int'}
      [-Werror=format=]
    
    * cmdufrag.c:432:47: error: format '%lu' expects argument of type 'long
      unsigned int', but argument 4 has type 'suseconds_t' {aka 'long long
      int'} [-Werror=format=]

Merge request reports