From eb5b2bb3ae45ba8d2c830ed61a3ababc5b73734c Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Thu, 18 Nov 2004 11:32:35 +0000 Subject: Apply __printflike() to the appendf() prototype so the compiler can detect format errors. --- libexec/ftpd/ftpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec') diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 029f12d76188..6d52c3dd4731 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -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 *); -- cgit v1.3