summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-07-05 08:17:06 +0000
committerkris <kris@FreeBSD.org>2001-07-05 08:17:06 +0000
commitf6fc0970daf5c18ee4284e3ce0d44b46a9902736 (patch)
tree9776da39db321d73d987ef8e7ba03becd0550d97 /usr.sbin/ypserv
parentb6359d6af6e634b0fd1c9b32a58167552b1e18f2 (diff)
downloadFreeBSD-src-f6fc0970daf5c18ee4284e3ce0d44b46a9902736.zip
FreeBSD-src-f6fc0970daf5c18ee4284e3ce0d44b46a9902736.tar.gz
Mark some functions as __printflike()
MFC After: 1 week
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r--usr.sbin/ypserv/yp_error.c3
-rw-r--r--usr.sbin/ypserv/yp_extern.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ypserv/yp_error.c b/usr.sbin/ypserv/yp_error.c
index d1ffd40..ce5b343 100644
--- a/usr.sbin/ypserv/yp_error.c
+++ b/usr.sbin/ypserv/yp_error.c
@@ -44,6 +44,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <sys/types.h>
#include <syslog.h>
+#include "yp_extern.h"
int debug;
extern int _rpcpmstart;
@@ -56,6 +57,8 @@ extern char *progname;
#include <varargs.h>
#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 cefab07b..75d2dd3 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
OpenPOWER on IntegriCloud