summaryrefslogtreecommitdiff
path: root/libexec
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
parentfa80b16724ce0bd6438d61e3a11855ca361f10d7 (diff)
Add __printflike attribution to use vprintf and friends with an argument
as format string.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/fingerd/fingerd.c6
-rw-r--r--libexec/identd/identd.c6
-rw-r--r--libexec/identd/identd.h4
3 files changed, 8 insertions, 8 deletions
diff --git a/libexec/fingerd/fingerd.c b/libexec/fingerd/fingerd.c
index 82d9f455ba7..9b7e7c64583 100644
--- a/libexec/fingerd/fingerd.c
+++ b/libexec/fingerd/fingerd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fingerd.c,v 1.26 2011/08/27 15:08:58 joerg Exp $ */
+/* $NetBSD: fingerd.c,v 1.27 2012/03/15 02:02:21 joerg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\
#if 0
static char sccsid[] = "from: @(#)fingerd.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: fingerd.c,v 1.26 2011/08/27 15:08:58 joerg Exp $");
+__RCSID("$NetBSD: fingerd.c,v 1.27 2012/03/15 02:02:21 joerg Exp $");
#endif
#endif /* not lint */
@@ -58,7 +58,7 @@ __RCSID("$NetBSD: fingerd.c,v 1.26 2011/08/27 15:08:58 joerg Exp $");
#include <string.h>
#include "pathnames.h"
-__dead static void my_err(const char *, ...);
+__dead static void my_err(const char *, ...) __printflike(1, 2);
int
main(int argc, char *argv[])
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 *);