mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-msc.git
synced 2025-11-03 05:23:29 +00:00
Fix building for debian 13 armv7l
In Debian 13 armv7l, time_t and suseconds_t are "long long int" instead of "long unsigned int" as seen on x86_64 and aarch64. Fix it by casting to "long long int". Related: OS#6828 Change-Id: I3de792d62b1989cf35051cbecde98fa9030bfbf2
This commit is contained in:
@@ -1048,9 +1048,9 @@ static void vty_dump_one_subscr(struct vty *vty, struct vlr_subscr *vsub,
|
||||
MSC_VTY_DUMP(vty, offset, "Expires: never%s",
|
||||
VTY_NEWLINE);
|
||||
} else if (osmo_clock_gettime(CLOCK_MONOTONIC, &now) == 0) {
|
||||
MSC_VTY_DUMP(vty, offset, "Expires: in %ld min %ld sec%s",
|
||||
(vsub->expire_lu - now.tv_sec) / 60,
|
||||
(vsub->expire_lu - now.tv_sec) % 60,
|
||||
MSC_VTY_DUMP(vty, offset, "Expires: in %lld min %lld sec%s",
|
||||
(long long int) ((vsub->expire_lu - now.tv_sec) / 60),
|
||||
(long long int) ((vsub->expire_lu - now.tv_sec) % 60),
|
||||
VTY_NEWLINE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user