summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-29 21:08:29 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-29 21:08:29 +0200
commit31c5d40baa2d624e1827e3149d07f26bdb129bef (patch)
tree42eba3f32ffaf0192d2609c106319a674764ccc5
parentd5dda14fa97b543bf6f77ffbb51c84f6efb15570 (diff)
daemon: fix gcc warnings
-rw-r--r--rtkit-daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rtkit-daemon.c b/rtkit-daemon.c
index 01c8bc6..661573d 100644
--- a/rtkit-daemon.c
+++ b/rtkit-daemon.c
@@ -339,7 +339,7 @@ static void free_user(struct rtkit_user *u) {
static bool user_in_burst(struct rtkit_user *u) {
time_t now = time(NULL);
- return now < u->timestamp + actions_burst_sec;
+ return now < u->timestamp + (time_t) actions_burst_sec;
}
static bool verify_burst(struct rtkit_user *u) {
@@ -1263,7 +1263,7 @@ static int verify_canary_refusal(void) {
assert_se(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
- if (now.tv_sec < refuse_until) {
+ if (now.tv_sec < (time_t) refuse_until) {
syslog(LOG_WARNING, "Recovering from system lockup, not allowing further RT threads.\n");
return -EPERM;
}