Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/passwd fix non-PAM build
details: https://anonhg.NetBSD.org/src/rev/59bacc880540
branches: trunk
changeset: 778409:59bacc880540
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Mar 25 05:55:07 2012 +0000
description:
fix non-PAM build
diffstat:
usr.bin/passwd/local_passwd.c | 14 ++++++--------
usr.bin/passwd/yp_passwd.c | 7 +++----
2 files changed, 9 insertions(+), 12 deletions(-)
diffs (82 lines):
diff -r 8dc29e91ee3c -r 59bacc880540 usr.bin/passwd/local_passwd.c
--- a/usr.bin/passwd/local_passwd.c Sun Mar 25 04:11:42 2012 +0000
+++ b/usr.bin/passwd/local_passwd.c Sun Mar 25 05:55:07 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: local_passwd.c,v 1.35 2011/08/31 16:24:58 plunky Exp $ */
+/* $NetBSD: local_passwd.c,v 1.36 2012/03/25 05:55:07 dholland Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "from: @(#)local_passwd.c 8.3 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: local_passwd.c,v 1.35 2011/08/31 16:24:58 plunky Exp $");
+__RCSID("$NetBSD: local_passwd.c,v 1.36 2012/03/25 05:55:07 dholland Exp $");
#endif
#endif /* not lint */
@@ -230,8 +230,7 @@
static int force_local;
int
-local_init(progname)
- const char *progname;
+local_init(const char *progname)
{
force_local = 0;
return (0);
@@ -251,7 +250,7 @@
}
int
-local_arg_end()
+local_arg_end(void)
{
if (force_local)
return(PW_USE_FORCE);
@@ -259,14 +258,13 @@
}
void
-local_end()
+local_end(void)
{
/* NOOP */
}
int
-local_chpw(uname)
- const char *uname;
+local_chpw(const char *uname)
{
struct passwd *pw;
struct passwd old_pw;
diff -r 8dc29e91ee3c -r 59bacc880540 usr.bin/passwd/yp_passwd.c
--- a/usr.bin/passwd/yp_passwd.c Sun Mar 25 04:11:42 2012 +0000
+++ b/usr.bin/passwd/yp_passwd.c Sun Mar 25 05:55:07 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: yp_passwd.c,v 1.36 2011/09/16 15:39:27 joerg Exp $ */
+/* $NetBSD: yp_passwd.c,v 1.37 2012/03/25 05:55:07 dholland Exp $ */
/*
* Copyright (c) 1988, 1990, 1993, 1994
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "from: @(#)local_passwd.c 8.3 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: yp_passwd.c,v 1.36 2011/09/16 15:39:27 joerg Exp $");
+__RCSID("$NetBSD: yp_passwd.c,v 1.37 2012/03/25 05:55:07 dholland Exp $");
#endif
#endif /* not lint */
@@ -329,8 +329,7 @@
static int yflag;
int
-yp_init(progname)
- const char *progname;
+yp_init(const char *progname)
{
int yppwd;
Home |
Main Index |
Thread Index |
Old Index