From 884d8ad87fd9e181e6b92c474e4ffed876e153e4 Mon Sep 17 00:00:00 2001 From: yar Date: Thu, 18 Nov 2004 11:32:35 +0000 Subject: [PATCH] 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(-) 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 *);