Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/checknr add more const
details: https://anonhg.NetBSD.org/src/rev/d5114c1f3df2
branches: trunk
changeset: 789233:d5114c1f3df2
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Aug 11 06:43:10 2013 +0000
description:
add more const
diffstat:
usr.bin/checknr/checknr.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (70 lines):
diff -r 67bc3f9aba45 -r d5114c1f3df2 usr.bin/checknr/checknr.c
--- a/usr.bin/checknr/checknr.c Sun Aug 11 06:39:47 2013 +0000
+++ b/usr.bin/checknr/checknr.c Sun Aug 11 06:43:10 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: checknr.c,v 1.21 2013/08/11 06:39:47 dholland Exp $ */
+/* $NetBSD: checknr.c,v 1.22 2013/08/11 06:43:10 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)checknr.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: checknr.c,v 1.21 2013/08/11 06:39:47 dholland Exp $");
+__RCSID("$NetBSD: checknr.c,v 1.22 2013/08/11 06:43:10 dholland Exp $");
#endif
#endif /* not lint */
@@ -202,12 +202,12 @@
void addcmd(char *);
void addmac(const char *);
int binsrch(const char *);
-void checkknown(char *);
-void chkcmd(char *, char *);
+void checkknown(const char *);
+void chkcmd(const char *);
void complain(int);
static int eq(const char *, const char *);
int main(int, char **);
-void nomatch(char *);
+void nomatch(const char *);
void pe(int);
void process(FILE *);
void prop(int);
@@ -349,7 +349,7 @@
if (eq(mac, "de"))
addcmd(line);
- chkcmd(line, mac);
+ chkcmd(mac);
}
/*
@@ -439,7 +439,7 @@
}
void
-chkcmd(char *line, char *mac)
+chkcmd(const char *mac)
{
int i;
@@ -475,7 +475,7 @@
}
void
-nomatch(char *mac)
+nomatch(const char *mac)
{
int i, j;
@@ -535,7 +535,7 @@
}
void
-checkknown(char *mac)
+checkknown(const char *mac)
{
if (eq(mac, "."))
Home |
Main Index |
Thread Index |
Old Index