From 98d15bdfc7ae70f89f58d46b1727aed19ceaf387 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 29 Dec 2015 16:04:45 +0100 Subject: fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/satd-list.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/satd-list.c') diff --git a/src/satd-list.c b/src/satd-list.c index 0a601dd..7605a50 100644 --- a/src/satd-list.c +++ b/src/satd-list.c @@ -71,7 +71,7 @@ quote(const char *str) } break; - case 2: + default: n = 4 * in + rn + sn + 2 * bn + 2 * qn + 3; t (!(rc = malloc((n + 1) * sizeof(char)))); rc[i++] = '$'; @@ -107,9 +107,9 @@ strduration(char *buffer, time_t s) { char *buf = buffer; int seconds, minutes, hours; - seconds = s % 60, s /= 60; - minutes = s % 60, s /= 60; - hours = s % 24, s /= 24; + seconds = (int)(s % 60), s /= 60; + minutes = (int)(s % 60), s /= 60; + hours = (int)(s % 24), s /= 24; if (s) { buf += sprintf(buf, "%llid", (long long int)s); buf += sprintf(buf, "%02i:", hours); @@ -243,7 +243,7 @@ main(int argc, char *argv[]) { size_t n = 0; char *message = NULL; - struct job **jobs; + struct job **jobs = NULL; struct job **job; DAEMON_PROLOGUE; -- cgit v1.2.3-70-g09d2