cron.c:100:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cron.c:108:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cron.c:125:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
# endif
static void reset_watches(void) {
- int i;
+ size_t i;
for (i = 0; i < sizeof (wd) / sizeof (wd[0]); ++i) {
wd[i] = -2;
}
void set_cron_unwatched(int fd) {
- int i;
+ size_t i;
for (i = 0; i < sizeof (wd) / sizeof (wd[0]); ++i) {
if (wd[i] > 0) {
void set_cron_watched(int fd) {
pid_t pid = getpid();
- int i;
+ size_t i;
if (fd < 0) {
inotify_enabled = 0;