osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-msc/+/40873?usp=email )

Change subject: Fix building for debian 13 armv7l
......................................................................

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(-)

Approvals:
  pespin: Looks good to me, approved
  Jenkins Builder: Verified




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 https://gerrit.osmocom.org/c/osmo-msc/+/40873?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I3de792d62b1989cf35051cbecde98fa9030bfbf2
Gerrit-Change-Number: 40873
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-CC: lynxis lazus <[email protected]>

Reply via email to