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

can detect format errors.
This commit is contained in:
Yaroslav Tykhiy 2004-11-18 11:32:35 +00:00
parent 82c03024c2
commit eb5b2bb3ae

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 *);