mirror of
https://github.com/samba-team/samba.git
synced 2025-10-25 19:33:18 +03:00
r2506: Add more printf attributes for format checking.
Andrew Bartlett
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
139cc702ac
commit
1640272dc3
@@ -395,7 +395,7 @@ char *talloc_strndup(void *t, const char *p, size_t n)
|
||||
return ret;
|
||||
}
|
||||
|
||||
char *talloc_vasprintf(void *t, const char *fmt, va_list ap)
|
||||
char *talloc_vasprintf(void *t, const char *fmt, va_list ap) _PRINTF_ATTRIBUTE(2,0)
|
||||
{
|
||||
int len;
|
||||
char *ret;
|
||||
@@ -437,9 +437,11 @@ char *talloc_asprintf(void *t, const char *fmt, ...) _PRINTF_ATTRIBUTE(2,3)
|
||||
* accumulating output into a string buffer.
|
||||
**/
|
||||
|
||||
char *talloc_vasprintf_append(char *s,
|
||||
const char *fmt, va_list ap) _PRINTF_ATTRIBUTE(2,0)
|
||||
static char *talloc_vasprintf_append(char *s,
|
||||
const char *fmt, va_list ap) PRINTF_ATTRIBUTE(2,0);
|
||||
|
||||
static char *talloc_vasprintf_append(char *s,
|
||||
const char *fmt, va_list ap)
|
||||
{
|
||||
int len, s_len;
|
||||
va_list ap2;
|
||||
|
||||
Reference in New Issue
Block a user