uncooloff: fix compiler warnings

Origin commit data
------------------
Commit: aed4b0100a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-04-27 (Sun, 27 Apr 2014)
This commit is contained in:
Stefan Seyfried
2014-04-27 19:20:18 +02:00
parent 3f36062fe7
commit 3ad18f61e2

View File

@@ -3,15 +3,17 @@
* this is needed because the drivers do not implement a proper
* hwclock interface :-(
*
* (C) 2013 Stefan Seyfried
* (C) 2013-2014 Stefan Seyfried
*
* License: GPLv2+
*/
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <linux/ioctl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <cs_frontpanel.h>
@@ -39,7 +41,7 @@ int main(int argc, char **argv)
fp_timer = (timer_seconds - now) / 60;
if (fp_timer < 1) {
fprintf(stderr, "warning: interval less than 1 minute (%d s) correcting\n",
(timer_seconds - now));
(int)(timer_seconds - now));
fp_timer = 1;
}
}