Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/mount_ffs ll __P(), use ANSI function declarations; WAR...



details:   https://anonhg.NetBSD.org/src/rev/bc147562fc64
branches:  trunk
changeset: 573693:bc147562fc64
user:      xtraeme <xtraeme%NetBSD.org@localhost>
date:      Sat Feb 05 14:54:35 2005 +0000

description:
ll __P(), use ANSI function declarations; WARNS=3.

diffstat:

 sbin/mount_ffs/Makefile    |   4 +++-
 sbin/mount_ffs/mount_ffs.c |  19 +++++++------------
 2 files changed, 10 insertions(+), 13 deletions(-)

diffs (78 lines):

diff -r b3410ee0e4fd -r bc147562fc64 sbin/mount_ffs/Makefile
--- a/sbin/mount_ffs/Makefile   Sat Feb 05 14:47:18 2005 +0000
+++ b/sbin/mount_ffs/Makefile   Sat Feb 05 14:54:35 2005 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.6 2003/03/22 12:43:59 jdolecek Exp $
+#      $NetBSD: Makefile,v 1.7 2005/02/05 14:54:35 xtraeme Exp $
 
 .include <bsd.own.mk>
 
@@ -6,6 +6,8 @@
 SRCS=  mount_ffs.c
 MAN=   mount_ffs.8
 
+WARNS= 3
+
 MLINKS=        mount_ffs.8 mount_ufs.8
 LINKS=  ${BINDIR}/mount_ffs ${BINDIR}/mount_ufs
 
diff -r b3410ee0e4fd -r bc147562fc64 sbin/mount_ffs/mount_ffs.c
--- a/sbin/mount_ffs/mount_ffs.c        Sat Feb 05 14:47:18 2005 +0000
+++ b/sbin/mount_ffs/mount_ffs.c        Sat Feb 05 14:54:35 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount_ffs.c,v 1.16 2005/01/31 05:19:19 erh Exp $       */
+/*     $NetBSD: mount_ffs.c,v 1.17 2005/02/05 14:54:35 xtraeme Exp $   */
 
 /*-
  * Copyright (c) 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)mount_ufs.c        8.4 (Berkeley) 4/26/95";
 #else
-__RCSID("$NetBSD: mount_ffs.c,v 1.16 2005/01/31 05:19:19 erh Exp $");
+__RCSID("$NetBSD: mount_ffs.c,v 1.17 2005/02/05 14:54:35 xtraeme Exp $");
 #endif
 #endif /* not lint */
 
@@ -57,9 +57,8 @@
 
 #include <mntopts.h>
 
-static void    ffs_usage __P((void));
-int    main __P((int, char *[]));
-int    mount_ffs __P((int argc, char **argv));
+static void    ffs_usage(void);
+int    mount_ffs(int argc, char **argv);
 
 static const struct mntopt mopts[] = {
        MOPT_STDOPTS,
@@ -77,18 +76,14 @@
 
 #ifndef MOUNT_NOMAIN
 int
-main(argc, argv)
-       int argc;
-       char **argv;
+main(int argc, char **argv)
 {
        return mount_ffs(argc, argv);
 }
 #endif
 
 int
-mount_ffs(argc, argv)
-       int argc;
-       char *argv[];
+mount_ffs(int argc, char *argv[])
 {
        struct ufs_args args;
        int ch, mntflags;
@@ -156,7 +151,7 @@
 }
 
 static void
-ffs_usage()
+ffs_usage(void)
 {
        (void)fprintf(stderr, "usage: mount_ffs [-o options] special node\n");
        exit(1);



Home | Main Index | Thread Index | Old Index