summaryrefslogtreecommitdiff
path: root/libexec/identd
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2012-03-15 02:02:20 +0000
committerjoerg <joerg@NetBSD.org>2012-03-15 02:02:20 +0000
commit85ebf103375262b27fffdad71fc44b299417f3ff (patch)
treee1ed527b316eb219b289e5214b93f707880a0ca1 /libexec/identd
parentfa80b16724ce0bd6438d61e3a11855ca361f10d7 (diff)
Add __printflike attribution to use vprintf and friends with an argument
as format string.
Diffstat (limited to 'libexec/identd')
-rw-r--r--libexec/identd/identd.c6
-rw-r--r--libexec/identd/identd.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/libexec/identd/identd.c b/libexec/identd/identd.c
index a44e8bd908b..85fc62de13e 100644
--- a/libexec/identd/identd.c
+++ b/libexec/identd/identd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: identd.c,v 1.33 2011/08/29 20:41:06 joerg Exp $ */
+/* $NetBSD: identd.c,v 1.34 2012/03/15 02:02:21 joerg Exp $ */
/*
* identd.c - TCP/IP Ident protocol server.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: identd.c,v 1.33 2011/08/29 20:41:06 joerg Exp $");
+__RCSID("$NetBSD: identd.c,v 1.34 2012/03/15 02:02:21 joerg Exp $");
#include <sys/param.h>
#include <sys/socket.h>
@@ -63,7 +63,7 @@ static void random_string(char *, size_t);
static int change_format(const char *, struct passwd *, char *, size_t);
__dead static void timeout_handler(int);
__dead static void fatal(const char *);
-__dead static void die(const char *, ...);
+__dead static void die(const char *, ...) __printflike(1, 2);
static int bflag, eflag, fflag, iflag, Iflag;
static int lflag, Lflag, nflag, Nflag, rflag;
diff --git a/libexec/identd/identd.h b/libexec/identd/identd.h
index 63c92e91e94..e186079bfd3 100644
--- a/libexec/identd/identd.h
+++ b/libexec/identd/identd.h
@@ -1,4 +1,4 @@
-/* $NetBSD: identd.h,v 1.8 2005/04/03 22:15:32 peter Exp $ */
+/* $NetBSD: identd.h,v 1.9 2012/03/15 02:02:21 joerg Exp $ */
/*
* identd.h - TCP/IP Ident protocol server.
@@ -14,7 +14,7 @@
#define satosin6(sa) ((struct sockaddr_in6 *)(sa))
#define in_hosteq(s,t) ((s).s_addr == (t).s_addr)
-void maybe_syslog(int, const char *, ...);
+void maybe_syslog(int, const char *, ...) __printflike(2, 3);
#ifdef WITH_PF
int pf_natlookup(struct sockaddr_storage *, struct sockaddr *, int *);