From 2c0643afdee7acdc3b57892ec64f03c898d1252e Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Thu, 5 Jul 2001 08:17:06 +0000 Subject: [PATCH] Mark some functions as __printflike() MFC After: 1 week --- usr.sbin/ypserv/yp_error.c | 3 +++ usr.sbin/ypserv/yp_extern.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ypserv/yp_error.c b/usr.sbin/ypserv/yp_error.c index d1ffd40ef4fb..ce5b343742c7 100644 --- a/usr.sbin/ypserv/yp_error.c +++ b/usr.sbin/ypserv/yp_error.c @@ -44,6 +44,7 @@ static const char rcsid[] = #include #include #include +#include "yp_extern.h" int debug; extern int _rpcpmstart; @@ -56,6 +57,8 @@ extern char *progname; #include #endif +static void __verr(const char *fmt, _BSD_VA_LIST_ ap) __printflike(1, 0); + static void __verr(fmt, ap) const char *fmt; _BSD_VA_LIST_ ap; diff --git a/usr.sbin/ypserv/yp_extern.h b/usr.sbin/ypserv/yp_extern.h index cefab07b2b0b..75d2dd3731d5 100644 --- a/usr.sbin/ypserv/yp_extern.h +++ b/usr.sbin/ypserv/yp_extern.h @@ -71,7 +71,7 @@ extern char *yp_dir; extern pid_t yp_pid; extern enum ypstat yp_errno; -extern void yp_error __P((const char *, ...)); +extern void yp_error __P((const char *, ...)) __printflike(1, 2); #ifdef DB_CACHE extern int yp_get_record __P(( DB *, const DBT *, DBT *, int)); #else