diff options
author | Vincent Labrecque <vincent@cvs.openbsd.org> | 2002-03-11 13:02:57 +0000 |
---|---|---|
committer | Vincent Labrecque <vincent@cvs.openbsd.org> | 2002-03-11 13:02:57 +0000 |
commit | 195cf29954aced38f2c3260a00e78b6c543347d7 (patch) | |
tree | 24960afa1083d432e589842ec187e8c39819c7ba /usr.bin/mg/cinfo.c | |
parent | 3acf70e568831a61d560c056d28ea06bf89c72df (diff) |
* Move to ANSI function definitions.
* Add a whole lot of consts where I thought it made sense
no ok, but no objections either...
Diffstat (limited to 'usr.bin/mg/cinfo.c')
-rw-r--r-- | usr.bin/mg/cinfo.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/mg/cinfo.c b/usr.bin/mg/cinfo.c index cbf530a1ed1..f77958040df 100644 --- a/usr.bin/mg/cinfo.c +++ b/usr.bin/mg/cinfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cinfo.c,v 1.7 2002/02/14 02:50:10 vincent Exp $ */ +/* $OpenBSD: cinfo.c,v 1.8 2002/03/11 13:02:56 vincent Exp $ */ /* * Character class tables. @@ -90,12 +90,9 @@ const char cinfo[256] = { * '\0'. */ char * -keyname(cp, len, k) - char *cp; - size_t len; - int k; +keyname(char *cp, size_t len, int k) { - char *np; + const char *np; if (k < 0) k = CHARMASK(k);/* sign extended char */ |