aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2001-07-05 08:17:06 +0000
committerKris Kennaway <kris@FreeBSD.org>2001-07-05 08:17:06 +0000
commit2c0643afdee7acdc3b57892ec64f03c898d1252e (patch)
tree9776da39db321d73d987ef8e7ba03becd0550d97 /usr.sbin/ypserv
parente287e9b1886ccbe006e235b41aed6822640e10e6 (diff)
Notes
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 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 <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 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