summaryrefslogtreecommitdiff
path: root/usr.bin/mg/funmap.c
diff options
context:
space:
mode:
authorVincent Labrecque <vincent@cvs.openbsd.org>2002-03-11 13:02:57 +0000
committerVincent Labrecque <vincent@cvs.openbsd.org>2002-03-11 13:02:57 +0000
commit195cf29954aced38f2c3260a00e78b6c543347d7 (patch)
tree24960afa1083d432e589842ec187e8c39819c7ba /usr.bin/mg/funmap.c
parent3acf70e568831a61d560c056d28ea06bf89c72df (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/funmap.c')
-rw-r--r--usr.bin/mg/funmap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/mg/funmap.c b/usr.bin/mg/funmap.c
index 1b3d7bb98d4..5c6c634998a 100644
--- a/usr.bin/mg/funmap.c
+++ b/usr.bin/mg/funmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: funmap.c,v 1.5 2002/02/20 22:30:54 vincent Exp $ */
+/* $OpenBSD: funmap.c,v 1.6 2002/03/11 13:02:56 vincent Exp $ */
/*
* Copyright (c) 2001 Artur Grabowski <art@openbsd.org>. All rights reserved.
*
@@ -32,8 +32,8 @@
*/
struct funmap {
- PF fn_funct;
- char *fn_name;
+ PF fn_funct;
+ const char *fn_name;
struct funmap *fn_next;
};
@@ -239,7 +239,7 @@ funmap_init(void)
}
int
-funmap_add(PF fun, char *fname)
+funmap_add(PF fun, const char *fname)
{
struct funmap *fn;
@@ -258,7 +258,7 @@ funmap_add(PF fun, char *fname)
* Translate from function name to function pointer.
*/
PF
-name_function(char *fname)
+name_function(const char *fname)
{
struct funmap *fn;
@@ -269,7 +269,7 @@ name_function(char *fname)
return NULL;
}
-char *
+const char *
function_name(PF fun)
{
struct funmap *fn;
@@ -285,7 +285,7 @@ function_name(PF fun)
* list possible function name completions.
*/
LIST *
-complete_function_list(char *fname, int c)
+complete_function_list(const char *fname, int c)
{
struct funmap *fn;
LIST *head, *el;