Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpam/modules Annotate logit to provide transitive form...
details: https://anonhg.NetBSD.org/src/rev/d6f3f0292c45
branches: trunk
changeset: 325801:d6f3f0292c45
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jan 07 02:07:43 2014 +0000
description:
Annotate logit to provide transitive format string checks.
diffstat:
lib/libpam/modules/pam_lastlog/pam_lastlog.c | 5 +++--
lib/libpam/modules/pam_login_access/login_access.c | 5 +++--
lib/libpam/modules/pam_radius/pam_radius.c | 5 +++--
3 files changed, 9 insertions(+), 6 deletions(-)
diffs (78 lines):
diff -r c66604d7e3ec -r d6f3f0292c45 lib/libpam/modules/pam_lastlog/pam_lastlog.c
--- a/lib/libpam/modules/pam_lastlog/pam_lastlog.c Tue Jan 07 02:07:08 2014 +0000
+++ b/lib/libpam/modules/pam_lastlog/pam_lastlog.c Tue Jan 07 02:07:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pam_lastlog.c,v 1.14 2012/01/03 19:02:55 christos Exp $ */
+/* $NetBSD: pam_lastlog.c,v 1.15 2014/01/07 02:07:43 joerg Exp $ */
/*-
* Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
@@ -47,7 +47,7 @@
#ifdef __FreeBSD__
__FBSDID("$FreeBSD: src/lib/libpam/modules/pam_lastlog/pam_lastlog.c,v 1.20 2004/01/26 19:28:37 des Exp $");
#else
-__RCSID("$NetBSD: pam_lastlog.c,v 1.14 2012/01/03 19:02:55 christos Exp $");
+__RCSID("$NetBSD: pam_lastlog.c,v 1.15 2014/01/07 02:07:43 joerg Exp $");
#endif
#include <sys/param.h>
@@ -95,6 +95,7 @@
size_t);
#endif
+__printflike(2, 3)
static void
logit(int level, const char *fmt, ...)
{
diff -r c66604d7e3ec -r d6f3f0292c45 lib/libpam/modules/pam_login_access/login_access.c
--- a/lib/libpam/modules/pam_login_access/login_access.c Tue Jan 07 02:07:08 2014 +0000
+++ b/lib/libpam/modules/pam_login_access/login_access.c Tue Jan 07 02:07:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: login_access.c,v 1.7 2013/12/29 22:54:58 christos Exp $ */
+/* $NetBSD: login_access.c,v 1.8 2014/01/07 02:07:43 joerg Exp $ */
/*
* This module implements a simple but effective form of login access
@@ -19,7 +19,7 @@
#ifdef __FreeBSD__
__FBSDID("$FreeBSD: src/lib/libpam/modules/pam_login_access/login_access.c,v 1.12 2004/03/05 08:10:18 markm Exp $");
#else
-__RCSID("$NetBSD: login_access.c,v 1.7 2013/12/29 22:54:58 christos Exp $");
+__RCSID("$NetBSD: login_access.c,v 1.8 2014/01/07 02:07:43 joerg Exp $");
#endif
#include <sys/types.h>
@@ -56,6 +56,7 @@
/* login_access - match username/group and host/tty with access control file */
+__printflike(2, 3)
static void
logit(int level, const char *fmt, ...)
{
diff -r c66604d7e3ec -r d6f3f0292c45 lib/libpam/modules/pam_radius/pam_radius.c
--- a/lib/libpam/modules/pam_radius/pam_radius.c Tue Jan 07 02:07:08 2014 +0000
+++ b/lib/libpam/modules/pam_radius/pam_radius.c Tue Jan 07 02:07:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pam_radius.c,v 1.7 2006/11/03 18:55:40 christos Exp $ */
+/* $NetBSD: pam_radius.c,v 1.8 2014/01/07 02:07:43 joerg Exp $ */
/*-
* Copyright 1998 Juniper Networks, Inc.
@@ -40,7 +40,7 @@
#ifdef __FreeBSD__
__FBSDID("$FreeBSD: src/lib/libpam/modules/pam_radius/pam_radius.c,v 1.22 2004/06/25 12:32:45 kan Exp $");
#else
-__RCSID("$NetBSD: pam_radius.c,v 1.7 2006/11/03 18:55:40 christos Exp $");
+__RCSID("$NetBSD: pam_radius.c,v 1.8 2014/01/07 02:07:43 joerg Exp $");
#endif
#include <sys/param.h>
@@ -76,6 +76,7 @@
static int do_challenge(pam_handle_t *, struct rad_handle *,
const char *);
+__printflike(2, 3)
static void
logit(int level, const char *fmt, ...)
{
Home |
Main Index |
Thread Index |
Old Index