Apply __printflike() to the appendf() prototype so the compiler
can detect format errors.
This commit is contained in:
parent
6bbb28b2e5
commit
884d8ad87f
@ -240,7 +240,7 @@ static struct passwd *
|
|||||||
sgetpwnam(char *);
|
sgetpwnam(char *);
|
||||||
static char *sgetsave(char *);
|
static char *sgetsave(char *);
|
||||||
static void reapchild(int);
|
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 logcmd(char *, char *, char *, off_t);
|
||||||
static void logxfer(char *, off_t, time_t);
|
static void logxfer(char *, off_t, time_t);
|
||||||
static char *doublequote(char *);
|
static char *doublequote(char *);
|
||||||
|
Loading…
Reference in New Issue
Block a user