osmith submitted this change.
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
---
M src/libmsc/msc_vty.c
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/libmsc/msc_vty.c b/src/libmsc/msc_vty.c
index e727feb..cbcad24 100644
--- a/src/libmsc/msc_vty.c
+++ b/src/libmsc/msc_vty.c
@@ -1048,9 +1048,9 @@
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);
}
To view, visit change 40873. To unsubscribe, or for help writing mail filters, visit settings.