diff options
-rw-r--r-- | usr.bin/mg/echo.c | 6 | ||||
-rw-r--r-- | usr.bin/mg/funmap.c | 4 | ||||
-rw-r--r-- | usr.bin/mg/funmap.h | 4 | ||||
-rw-r--r-- | usr.bin/mg/help.c | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/mg/echo.c b/usr.bin/mg/echo.c index 40ff3eaeed0..29c26e341a1 100644 --- a/usr.bin/mg/echo.c +++ b/usr.bin/mg/echo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: echo.c,v 1.31 2005/04/03 02:09:28 db Exp $ */ +/* $OpenBSD: echo.c,v 1.32 2005/04/28 07:23:56 otto Exp $ */ /* * Echo line reading and writing. * @@ -341,7 +341,7 @@ complt(int flags, int c, char *buf, size_t nbuf, int cpos) if ((flags & EFFUNC) != 0) { buf[cpos] = '\0'; - wholelist = lh = complete_function_list(buf, c); + wholelist = lh = complete_function_list(buf); } else if ((flags & EFBUF) != 0) { lh = &(bheadp->b_list); } else if ((flags & EFFILE) != 0) { @@ -461,7 +461,7 @@ complt_list(int flags, int c, char *buf, int cpos) wholelist = lh = copy_list(&(bheadp->b_list)); else if ((flags & EFFUNC) != 0) { buf[cpos] = '\0'; - wholelist = lh = complete_function_list(buf, c); + wholelist = lh = complete_function_list(buf); } else if ((flags & EFFILE) != 0) { buf[cpos] = '\0'; wholelist = lh = make_file_list(buf); diff --git a/usr.bin/mg/funmap.c b/usr.bin/mg/funmap.c index 37d0c58f718..72a7fa66016 100644 --- a/usr.bin/mg/funmap.c +++ b/usr.bin/mg/funmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: funmap.c,v 1.11 2005/04/03 02:09:28 db Exp $ */ +/* $OpenBSD: funmap.c,v 1.12 2005/04/28 07:23:56 otto Exp $ */ /* * Copyright (c) 2001 Artur Grabowski <art@openbsd.org>. All rights reserved. * @@ -289,7 +289,7 @@ function_name(PF fun) * List possible function name completions. */ LIST * -complete_function_list(const char *fname, int c) +complete_function_list(const char *fname) { struct funmap *fn; LIST *head, *el; diff --git a/usr.bin/mg/funmap.h b/usr.bin/mg/funmap.h index 81c3f902fce..ffbe3bdb79f 100644 --- a/usr.bin/mg/funmap.h +++ b/usr.bin/mg/funmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: funmap.h,v 1.4 2005/04/03 02:09:28 db Exp $ */ +/* $OpenBSD: funmap.h,v 1.5 2005/04/28 07:23:56 otto Exp $ */ /* * Copyright (c) 2001 Artur Grabowski <art@openbsd.org>. All rights reserved. * @@ -26,5 +26,5 @@ void funmap_init(void); PF name_function(const char *); const char *function_name(PF); -LIST *complete_function_list(const char *, int); +LIST *complete_function_list(const char *); int funmap_add(PF, const char *); diff --git a/usr.bin/mg/help.c b/usr.bin/mg/help.c index 799dec60b9e..1e1d0764897 100644 --- a/usr.bin/mg/help.c +++ b/usr.bin/mg/help.c @@ -1,4 +1,4 @@ -/* $OpenBSD: help.c,v 1.22 2005/04/03 02:09:28 db Exp $ */ +/* $OpenBSD: help.c,v 1.23 2005/04/28 07:23:56 otto Exp $ */ /* * Help functions for Mg 2 @@ -186,7 +186,7 @@ apropos_command(int f, int n) if (bclear(bp) == FALSE) return (FALSE); - fnames = complete_function_list("", NULL); + fnames = complete_function_list(""); for (el = fnames; el != NULL; el = el->l_next) { char buf[32]; |