* editcmd.c (sprintf_p): Declare with the printf attribute.

Make static.
This commit is contained in:
Pavel Roskin 2001-10-20 07:20:30 +00:00
parent 399d996408
commit 943bae02ad
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2001-10-20 Pavel Roskin <proski@gnu.org>
* editcmd.c (sprintf_p): Declare with the printf attribute.
Make static.
* edit.h: Declare edit_printf() with the printf attribute.
2001-10-18 Pavel Roskin <proski@gnu.org>

View File

@ -1494,7 +1494,10 @@ long edit_find (long search_start, unsigned char *exp, int *len, long last_byte,
/* this function uses the sprintf command to do a vprintf */
/* it takes pointers to arguments instead of the arguments themselves */
int sprintf_p (char *str, const char *fmt,...)
static int sprintf_p (char *str, const char *fmt,...)
__attribute__ ((format (printf, 2, 3)));
static int sprintf_p (char *str, const char *fmt,...)
{
va_list ap;
int n;