Module Name: src
Committed By: mlelstv
Date: Sun Apr 26 19:56:20 UTC 2009
Modified Files:
src/usr.sbin/iteconfig: iteconfig.c
Log Message:
don't discard const qualifiers
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/iteconfig/iteconfig.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/iteconfig/iteconfig.c
diff -u src/usr.sbin/iteconfig/iteconfig.c:1.8 src/usr.sbin/iteconfig/iteconfig.c:1.9
--- src/usr.sbin/iteconfig/iteconfig.c:1.8 Sat Sep 27 19:35:14 2003
+++ src/usr.sbin/iteconfig/iteconfig.c Sun Apr 26 19:56:20 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: iteconfig.c,v 1.8 2003/09/27 19:35:14 mhitch Exp $ */
+/* $NetBSD: iteconfig.c,v 1.9 2009/04/26 19:56:20 mlelstv Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
* All rights reserved.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: iteconfig.c,v 1.8 2003/09/27 19:35:14 mhitch Exp $");
+__RCSID("$NetBSD: iteconfig.c,v 1.9 2009/04/26 19:56:20 mlelstv Exp $");
#endif
#include <sys/types.h>
@@ -67,7 +67,7 @@
#include "pathnames.h"
-int initialize __P((char *, struct itewinsize *, struct itebell *,
+int initialize __P((const char *, struct itewinsize *, struct itebell *,
struct itewinsize *, struct itebell *));
int main __P((int, char **));
void printcmap __P((colormap_t *, int));
@@ -85,7 +85,7 @@
struct itebell ib, newib;
struct winsize ws;
colormap_t *cm;
- char *file = _PATH_CONSOLE;
+ const char *file = _PATH_CONSOLE;
int ch, fd, i, iflag, max_colors, did_reset;
long val;
@@ -265,7 +265,7 @@
int
initialize(file, is, ib, newis, newib)
- char *file;
+ const char *file;
struct itewinsize *is, *newis;
struct itebell *ib, *newib;
{