* editcmd.c (sprintf_p): Declare with the printf attribute.
Make static.
Этот коммит содержится в:
родитель
399d996408
Коммит
943bae02ad
@ -1,5 +1,8 @@
|
|||||||
2001-10-20 Pavel Roskin <proski@gnu.org>
|
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.
|
* edit.h: Declare edit_printf() with the printf attribute.
|
||||||
|
|
||||||
2001-10-18 Pavel Roskin <proski@gnu.org>
|
2001-10-18 Pavel Roskin <proski@gnu.org>
|
||||||
|
@ -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 */
|
/* this function uses the sprintf command to do a vprintf */
|
||||||
/* it takes pointers to arguments instead of the arguments themselves */
|
/* 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;
|
va_list ap;
|
||||||
int n;
|
int n;
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user