osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-msc/+/40918?usp=email )
Change subject: tests/smpp: fix building for debian 13 armv7l ......................................................................
tests/smpp: fix building for debian 13 armv7l
In Debian 13 armv7l, time_t is "long long int" instead of "long unsigned int" as seen on x86_64 and aarch64. Fix it by casting to "long long int".
Change-Id: I3801fc7d0a85036f1f9346c54824eff5c126f363 --- M tests/smpp/smpp_test.c 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve pespin: Looks good to me, approved
diff --git a/tests/smpp/smpp_test.c b/tests/smpp/smpp_test.c index 9b94c63..085d983 100644 --- a/tests/smpp/smpp_test.c +++ b/tests/smpp/smpp_test.c @@ -86,7 +86,7 @@ time_t t = smpp_parse_time_format(smpp_time_tests[i], &t_now); char buf[32]; strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", gmtime(&t)); - printf("'%s': %ld == %s\n", smpp_time_tests[i], t, buf); + printf("'%s': %lld == %s\n", smpp_time_tests[i], (long long int) t, buf); }
if (orig_tz)