Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/ccdconfig Sprinkle some const.
details: https://anonhg.NetBSD.org/src/rev/32072b1c4801
branches: trunk
changeset: 502970:32072b1c4801
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Jan 28 00:59:26 2001 +0000
description:
Sprinkle some const.
diffstat:
sbin/ccdconfig/ccdconfig.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (43 lines):
diff -r 4fe37a8010f4 -r 32072b1c4801 sbin/ccdconfig/ccdconfig.c
--- a/sbin/ccdconfig/ccdconfig.c Sun Jan 28 00:50:23 2001 +0000
+++ b/sbin/ccdconfig/ccdconfig.c Sun Jan 28 00:59:26 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ccdconfig.c,v 1.32 2000/10/10 20:24:50 is Exp $ */
+/* $NetBSD: ccdconfig.c,v 1.33 2001/01/28 00:59:27 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
__COPYRIGHT(
"@(#) Copyright (c) 1996, 1997\
The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: ccdconfig.c,v 1.32 2000/10/10 20:24:50 is Exp $");
+__RCSID("$NetBSD: ccdconfig.c,v 1.33 2001/01/28 00:59:27 thorpej Exp $");
#endif
#include <sys/param.h>
@@ -74,13 +74,13 @@
static size_t lineno;
static gid_t egid;
static int verbose;
-static char *ccdconf = _PATH_CCDCONF;
+static const char *ccdconf = _PATH_CCDCONF;
static char *core;
static char *kernel;
struct flagval {
- char *fv_flag;
+ const char *fv_flag;
int fv_val;
} flagvaltab[] = {
{ "CCDF_UNIFORM", CCDF_UNIFORM },
@@ -470,7 +470,7 @@
struct ccd_ioctl *cciop;
{
int fd;
- char *cp;
+ const char *cp;
if ((fd = open(path, O_RDWR, 0640)) < 0) {
warn("open: %s", path);
Home |
Main Index |
Thread Index |
Old Index