Module Name:    src
Committed By:   lukem
Date:           Sat Apr 11 12:44:29 UTC 2009

Modified Files:
        src/usr.sbin/cron: crontab.c

Log Message:
fix -Wcast-qual issues


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/usr.sbin/cron/crontab.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/cron/crontab.c
diff -u src/usr.sbin/cron/crontab.c:1.30 src/usr.sbin/cron/crontab.c:1.31
--- src/usr.sbin/cron/crontab.c:1.30	Wed May 24 21:43:43 2006
+++ src/usr.sbin/cron/crontab.c	Sat Apr 11 12:44:29 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: crontab.c,v 1.30 2006/05/24 21:43:43 christos Exp $	*/
+/*	$NetBSD: crontab.c,v 1.31 2009/04/11 12:44: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.30 2006/05/24 21:43:43 christos Exp $");
+__RCSID("$NetBSD: crontab.c,v 1.31 2009/04/11 12:44:29 lukem Exp $");
 #endif
 #endif
 
@@ -62,7 +62,7 @@
 enum opt_t	{ opt_unknown, opt_list, opt_delete, opt_edit, opt_replace };
 
 #if DEBUGGING
-static char	*Options[] = { "???", "list", "delete", "edit", "replace" };
+static const char *Options[] = { "???", "list", "delete", "edit", "replace" };
 #endif
 
 
@@ -80,12 +80,12 @@
 			check_error(const char *),
 			parse_args(int c, char *v[]),
 			skip_header(int *, FILE *),
-			usage(char *);
+			usage(const char *);
 static	int		replace_cmd(void);
 
 
 static void
-usage(char *msg)
+usage(const char *msg)
 {
 	fprintf(stderr, "%s: usage error: %s\n", getprogname(), msg);
 	fprintf(stderr, "usage:\t%s [-u user] file\n", getprogname());
@@ -568,7 +568,7 @@
 	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.30 2006/05/24 21:43:43 christos Exp $");
+	    "$NetBSD: crontab.c,v 1.31 2009/04/11 12:44:29 lukem Exp $");
 
 	/* copy the crontab to the tmp
 	 */

Reply via email to