Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/chown Kill __P(), use ANSI function declarations; W...
details: https://anonhg.NetBSD.org/src/rev/c11fd6580fbe
branches: trunk
changeset: 574881:c11fd6580fbe
user: xtraeme <xtraeme%NetBSD.org@localhost>
date: Wed Mar 16 02:08:52 2005 +0000
description:
Kill __P(), use ANSI function declarations; WARNS=3
diffstat:
usr.sbin/chown/Makefile | 4 +++-
usr.sbin/chown/chown.c | 28 +++++++++++-----------------
2 files changed, 14 insertions(+), 18 deletions(-)
diffs (100 lines):
diff -r 0eea305b4e59 -r c11fd6580fbe usr.sbin/chown/Makefile
--- a/usr.sbin/chown/Makefile Wed Mar 16 02:04:51 2005 +0000
+++ b/usr.sbin/chown/Makefile Wed Mar 16 02:08:52 2005 +0000
@@ -1,9 +1,11 @@
# from: @(#)Makefile 8.1 (Berkeley) 6/6/93
-# $NetBSD: Makefile,v 1.7 1997/10/23 06:31:59 lukem Exp $
+# $NetBSD: Makefile,v 1.8 2005/03/16 02:08:52 xtraeme Exp $
PROG= chown
CPPFLAGS+=-DSUPPORT_DOT
MAN= chgrp.1 chown.8
LINKS= ${BINDIR}/chown /usr/bin/chgrp
+WARNS= 3
+
.include <bsd.prog.mk>
diff -r 0eea305b4e59 -r c11fd6580fbe usr.sbin/chown/chown.c
--- a/usr.sbin/chown/chown.c Wed Mar 16 02:04:51 2005 +0000
+++ b/usr.sbin/chown/chown.c Wed Mar 16 02:08:52 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chown.c,v 1.29 2003/09/25 10:30:10 dsl Exp $ */
+/* $NetBSD: chown.c,v 1.30 2005/03/16 02:08:52 xtraeme Exp $ */
/*
* Copyright (c) 1988, 1993, 1994, 2003
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)chown.c 8.8 (Berkeley) 4/4/94";
#else
-__RCSID("$NetBSD: chown.c,v 1.29 2003/09/25 10:30:10 dsl Exp $");
+__RCSID("$NetBSD: chown.c,v 1.30 2005/03/16 02:08:52 xtraeme Exp $");
#endif
#endif /* not lint */
@@ -59,11 +59,10 @@
#include <string.h>
#include <unistd.h>
-static void a_gid __P((const char *));
-static void a_uid __P((const char *));
-static id_t id __P((const char *, const char *));
- int main __P((int, char **));
-static void usage __P((void));
+static void a_gid(const char *);
+static void a_uid(const char *);
+static id_t id(const char *, const char *);
+static void usage(void);
static uid_t uid;
static gid_t gid;
@@ -71,9 +70,7 @@
static char *myname;
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char **argv)
{
FTS *ftsp;
FTSENT *p;
@@ -224,8 +221,7 @@
}
static void
-a_gid(s)
- const char *s;
+a_gid(const char *s)
{
struct group *gr;
@@ -240,8 +236,7 @@
}
static void
-a_uid(s)
- const char *s;
+a_uid(const char *s)
{
if (*s == '\0') /* Argument was "[:.]gid". */
return;
@@ -252,8 +247,7 @@
}
static id_t
-id(name, type)
- const char *name, *type;
+id(const char *name, const char *type)
{
id_t val;
char *ep;
@@ -270,7 +264,7 @@
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr,
Home |
Main Index |
Thread Index |
Old Index