Module Name: src
Committed By: christos
Date: Sat Sep 17 14:25:43 UTC 2011
Modified Files:
src/libexec/utmp_update: utmp_update.c
Log Message:
add printflike
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/libexec/utmp_update/utmp_update.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/utmp_update/utmp_update.c
diff -u src/libexec/utmp_update/utmp_update.c:1.10 src/libexec/utmp_update/utmp_update.c:1.11
--- src/libexec/utmp_update/utmp_update.c:1.10 Fri Sep 16 21:50:54 2011
+++ src/libexec/utmp_update/utmp_update.c Sat Sep 17 10:25:43 2011
@@ -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;