mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Mark some functions as __printflike()
MFC After: 1 week
This commit is contained in:
parent
e287e9b188
commit
2c0643afde
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79294
@ -44,6 +44,7 @@ static const char rcsid[] =
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
|
#include "yp_extern.h"
|
||||||
|
|
||||||
int debug;
|
int debug;
|
||||||
extern int _rpcpmstart;
|
extern int _rpcpmstart;
|
||||||
@ -56,6 +57,8 @@ extern char *progname;
|
|||||||
#include <varargs.h>
|
#include <varargs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static void __verr(const char *fmt, _BSD_VA_LIST_ ap) __printflike(1, 0);
|
||||||
|
|
||||||
static void __verr(fmt, ap)
|
static void __verr(fmt, ap)
|
||||||
const char *fmt;
|
const char *fmt;
|
||||||
_BSD_VA_LIST_ ap;
|
_BSD_VA_LIST_ ap;
|
||||||
|
@ -71,7 +71,7 @@ extern char *yp_dir;
|
|||||||
extern pid_t yp_pid;
|
extern pid_t yp_pid;
|
||||||
|
|
||||||
extern enum ypstat yp_errno;
|
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
|
#ifdef DB_CACHE
|
||||||
extern int yp_get_record __P(( DB *, const DBT *, DBT *, int));
|
extern int yp_get_record __P(( DB *, const DBT *, DBT *, int));
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user