From f93f13ab6fae9bdd76fa6f99a0de775ac0781e58 Mon Sep 17 00:00:00 2001 From: lukem Date: Sat, 11 Apr 2009 12:55:29 +0000 Subject: [PATCH] fix -Wsign-compare issue on amd64 --- usr.sbin/cron/crontab.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index 0281d308941e..f2b66906e396 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -1,4 +1,4 @@ -/* $NetBSD: crontab.c,v 1.31 2009/04/11 12:44:29 lukem Exp $ */ +/* $NetBSD: crontab.c,v 1.32 2009/04/11 12:55:29 lukem Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -22,7 +22,7 @@ #if 0 static char rcsid[] = "Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp"; #else -__RCSID("$NetBSD: crontab.c,v 1.31 2009/04/11 12:44:29 lukem Exp $"); +__RCSID("$NetBSD: crontab.c,v 1.32 2009/04/11 12:55:29 lukem Exp $"); #endif #endif @@ -554,7 +554,7 @@ replace_cmd(void) { warn("error stat'ing crontab input"); goto out; } - if (statbuf.st_size > maxtabsize) { + if (statbuf.st_size > (off_t)maxtabsize) { warnx("%ld bytes is larger than the maximum size of %ld bytes", (long) statbuf.st_size, (long) maxtabsize); val = -1; @@ -568,7 +568,7 @@ replace_cmd(void) { fprintf(tmp, "# DO NOT EDIT THIS FILE - edit the master and reinstall.\n"); fprintf(tmp, "# (%s installed on %-24.24s)\n", Filename, ctime(&now)); fprintf(tmp, "# (Cron version -- %s)\n", - "$NetBSD: crontab.c,v 1.31 2009/04/11 12:44:29 lukem Exp $"); + "$NetBSD: crontab.c,v 1.32 2009/04/11 12:55:29 lukem Exp $"); /* copy the crontab to the tmp */