summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-04-03 13:18:02 +0200
committerWim Taymans <wtaymans@redhat.com>2020-04-03 13:18:02 +0200
commitab3a6d3441564a2307e4d2bcb5354a5da79406a8 (patch)
tree4d63ba7ad9090b23686934eb750236f95a4939e9 /src/modules
parentdf5721ff4725b312c47dffe5d234579680cb1b2b (diff)
Fix some compiler warnings on arm
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/module-rtkit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/module-rtkit.c b/src/modules/module-rtkit.c
index 23be7566..c6c130af 100644
--- a/src/modules/module-rtkit.c
+++ b/src/modules/module-rtkit.c
@@ -485,12 +485,12 @@ static void idle_func(struct spa_source *source)
rttime = pw_rtkit_get_rttime_usec_max(system_bus);
if (rttime >= 0) {
- rl.rlim_cur = SPA_MIN(rl.rlim_cur, (long unsigned int)rttime);
- rl.rlim_max = SPA_MIN(rl.rlim_max, (long unsigned int)rttime);
+ rl.rlim_cur = SPA_MIN(rl.rlim_cur, (rlim_t)rttime);
+ rl.rlim_max = SPA_MIN(rl.rlim_max, (rlim_t)rttime);
}
- pw_log_debug("rt.prio:%d rt.time.soft:%lu rt.time.hard:%lu",
- rtprio, rl.rlim_cur, rl.rlim_max);
+ pw_log_debug("rt.prio:%d rt.time.soft:%"PRIi64" rt.time.hard:%"PRIi64,
+ rtprio, (int64_t)rl.rlim_cur, (int64_t)rl.rlim_max);
if ((r = setrlimit(RLIMIT_RTTIME, &rl)) < 0)
pw_log_debug("setrlimit() failed: %s", strerror(errno));