Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.sbin/user Pull up revision 1.25 (requested by he):
details: https://anonhg.NetBSD.org/src/rev/2cf4838b7fb8
branches: netbsd-1-4
changeset: 471142:2cf4838b7fb8
user: he <he%NetBSD.org@localhost>
date: Thu Oct 19 17:05:56 2000 +0000
description:
Pull up revision 1.25 (requested by he):
Format string cleanup.
diffstat:
usr.sbin/user/user.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 43fc1b564c17 -r 2cf4838b7fb8 usr.sbin/user/user.c
--- a/usr.sbin/user/user.c Thu Oct 19 17:05:53 2000 +0000
+++ b/usr.sbin/user/user.c Thu Oct 19 17:05:56 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: user.c,v 1.10.2.5 2000/09/12 22:12:06 he Exp $ */
+/* $NetBSD: user.c,v 1.10.2.6 2000/10/19 17:05:56 he Exp $ */
/*
* Copyright (c) 1999 Alistair G. Crooks. All rights reserved.
@@ -36,7 +36,7 @@
__COPYRIGHT(
"@(#) Copyright (c) 1999 \
The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: user.c,v 1.10.2.5 2000/09/12 22:12:06 he Exp $");
+__RCSID("$NetBSD: user.c,v 1.10.2.6 2000/10/19 17:05:56 he Exp $");
#endif
#include <sys/types.h>
@@ -168,6 +168,9 @@
#define UNSET_EXPIRY "Null (unset)"
+static int asystem(const char *fmt, ...)
+ __attribute__((__format__(__printf__, 1, 2)));
+
static int verbose;
/* if *cpp is non-null, free it, then assign `n' chars of `s' to it */
@@ -184,7 +187,7 @@
/* a replacement for system(3) */
static int
-asystem(char *fmt, ...)
+asystem(const char *fmt, ...)
{
va_list vp;
char buf[MaxCommandLen];
Home |
Main Index |
Thread Index |
Old Index