mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
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:
@@ -3,15 +3,17 @@
|
|||||||
* this is needed because the drivers do not implement a proper
|
* this is needed because the drivers do not implement a proper
|
||||||
* hwclock interface :-(
|
* hwclock interface :-(
|
||||||
*
|
*
|
||||||
* (C) 2013 Stefan Seyfried
|
* (C) 2013-2014 Stefan Seyfried
|
||||||
*
|
*
|
||||||
* License: GPLv2+
|
* License: GPLv2+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <linux/ioctl.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
#include <cs_frontpanel.h>
|
#include <cs_frontpanel.h>
|
||||||
|
|
||||||
@@ -39,7 +41,7 @@ int main(int argc, char **argv)
|
|||||||
fp_timer = (timer_seconds - now) / 60;
|
fp_timer = (timer_seconds - now) / 60;
|
||||||
if (fp_timer < 1) {
|
if (fp_timer < 1) {
|
||||||
fprintf(stderr, "warning: interval less than 1 minute (%d s) correcting\n",
|
fprintf(stderr, "warning: interval less than 1 minute (%d s) correcting\n",
|
||||||
(timer_seconds - now));
|
(int)(timer_seconds - now));
|
||||||
fp_timer = 1;
|
fp_timer = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user