Apply __printflike() to the appendf() prototype so the compiler

can detect format errors.
This commit is contained in:
yar 2004-11-18 11:32:35 +00:00
parent 6bbb28b2e5
commit 884d8ad87f

View File

@ -240,7 +240,7 @@ static struct passwd *
sgetpwnam(char *);
static char *sgetsave(char *);
static void reapchild(int);
static void appendf(char **, char *, ...);
static void appendf(char **, char *, ...) __printflike(2, 3);
static void logcmd(char *, char *, char *, off_t);
static void logxfer(char *, off_t, time_t);
static char *doublequote(char *);