diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 16:04:45 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 16:04:45 +0100 |
commit | 98d15bdfc7ae70f89f58d46b1727aed19ceaf387 (patch) | |
tree | 762d155dcd0865a0fda43b70fe490be85beee994 /src/satd-list.c | |
parent | add build system + add news file + update deps (diff) | |
download | sat-98d15bdfc7ae70f89f58d46b1727aed19ceaf387.tar.gz sat-98d15bdfc7ae70f89f58d46b1727aed19ceaf387.tar.bz2 sat-98d15bdfc7ae70f89f58d46b1727aed19ceaf387.tar.xz |
fix warnings
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/satd-list.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; |