Module Name: src
Committed By: lukem
Date: Sat Apr 18 09:20:40 UTC 2009
Modified Files:
src/usr.sbin/repquota: repquota.c
Log Message:
Fix -Wcast-qual issues
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/usr.sbin/repquota/repquota.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/repquota/repquota.c
diff -u src/usr.sbin/repquota/repquota.c:1.23 src/usr.sbin/repquota/repquota.c:1.24
--- src/usr.sbin/repquota/repquota.c:1.23 Mon Jul 21 13:36:59 2008
+++ src/usr.sbin/repquota/repquota.c Sat Apr 18 09:20:40 2009
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)repquota.c 8.2 (Berkeley) 11/22/94";
#else
-__RCSID("$NetBSD: repquota.c,v 1.23 2008/07/21 13:36:59 lukem Exp $");
+__RCSID("$NetBSD: repquota.c,v 1.24 2009/04/18 09:20:40 lukem Exp $");
#endif
#endif /* not lint */
@@ -60,8 +60,8 @@
#include <string.h>
#include <unistd.h>
-char *qfname = QUOTAFILENAME;
-char *qfextension[] = INITQFNAMES;
+const char *qfname = QUOTAFILENAME;
+const char *qfextension[] = INITQFNAMES;
struct fileusage {
struct fileusage *fu_next;
@@ -83,7 +83,7 @@
int main __P((int, char **));
int oneof __P((const char *, char **, int));
int repquota __P((struct fstab *, int, char *));
-char *timeprt __P((time_t));
+const char *timeprt __P((time_t));
void usage __P((void));
int
@@ -368,7 +368,7 @@
/*
* Calculate the grace period and return a printable string for it.
*/
-char *
+const char *
timeprt(seconds)
time_t seconds;
{