Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/utmp_update add printflike



details:   https://anonhg.NetBSD.org/src/rev/7972516a0243
branches:  trunk
changeset: 769665:7972516a0243
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 17 14:25:43 2011 +0000

description:
add printflike

diffstat:

 libexec/utmp_update/utmp_update.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1e74807e6fad -r 7972516a0243 libexec/utmp_update/utmp_update.c
--- a/libexec/utmp_update/utmp_update.c Sat Sep 17 13:28:51 2011 +0000
+++ b/libexec/utmp_update/utmp_update.c Sat Sep 17 14:25:43 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: utmp_update.c,v 1.10 2011/09/17 01:50:54 christos Exp $         */
+/*     $NetBSD: utmp_update.c,v 1.11 2011/09/17 14:25:43 christos Exp $         */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 #include <sys/cdefs.h>
 
-__RCSID("$NetBSD: utmp_update.c,v 1.10 2011/09/17 01:50:54 christos Exp $");
+__RCSID("$NetBSD: utmp_update.c,v 1.11 2011/09/17 14:25:43 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -50,7 +50,7 @@
 #include <errno.h>
 #include <syslog.h>
 
-static __dead void
+static __dead __printflike(2, 3) void
 logerr(int e, const char *fmt, ...)
 {
        va_list sap, eap;



Home | Main Index | Thread Index | Old Index