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:
Oliver Smith
2025-08-13 12:13:48 +02:00
parent 174ad8354f
commit ba9f30c5cc

View File

@@ -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);
}