mirror of https://github.com/MidnightCommander/mc
* editcmd.c (sprintf_p): Declare with the printf attribute.
Make static.
This commit is contained in:
parent
399d996408
commit
943bae02ad
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue