From e8e003558715f6e7cc0a8eb8fcc965bb0bb856d2 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Mon, 7 Feb 2005 06:34:08 +0000 Subject: [PATCH] * edit.h: Removed catstrs, as it is only used in editcmd.c. * editcmd.c (catstrs): Changed declaration to be static. --- edit/ChangeLog | 4 ++-- edit/edit.h | 1 - edit/editcmd.c | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/edit/ChangeLog b/edit/ChangeLog index 5f3e3b184..2aaa6231a 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,7 +1,7 @@ 2005-02-07 Roland Illig - * edit.h (catstrs): Changed the return type to "const char *". - * editcmd.c (catstrs): Likewise. + * edit.h: Removed catstrs, as it is only used in editcmd.c. + * editcmd.c (catstrs): Changed declaration to be static. * editcmd.c: Added const qualifiers. * syntax.c: Don't use catstrs anymore. * edit.c (user_menu): Likewise. diff --git a/edit/edit.h b/edit/edit.h index 57647a62c..616d0c16e 100644 --- a/edit/edit.h +++ b/edit/edit.h @@ -186,7 +186,6 @@ int edit_save_block_cmd (WEdit * edit); int edit_insert_file_cmd (WEdit * edit); int edit_insert_file (WEdit * edit, const char *filename); void edit_block_process_cmd (WEdit * edit, const char *shell_cmd, int block); -const char *catstrs (const char *first, ...); void freestrs (void); void edit_refresh_cmd (WEdit * edit); void edit_date_cmd (WEdit * edit); diff --git a/edit/editcmd.c b/edit/editcmd.c index d794a4512..609312918 100644 --- a/edit/editcmd.c +++ b/edit/editcmd.c @@ -131,7 +131,8 @@ static char *stacked[16]; The result is later automatically free'd and must not be free'd by the caller. */ -const char *catstrs (const char *first,...) +static const char * +catstrs (const char *first,...) { static int i = 0; va_list ap;