Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/timed/timedc ANSIfy and de-__P() a bit more.



details:   https://anonhg.NetBSD.org/src/rev/e56e18afa536
branches:  trunk
changeset: 533668:e56e18afa536
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sat Jul 06 22:01:40 2002 +0000

description:
ANSIfy and de-__P() a bit more.

diffstat:

 usr.sbin/timed/timedc/cmds.c   |  10 ++++------
 usr.sbin/timed/timedc/timedc.c |  13 +++++--------
 usr.sbin/timed/timedc/timedc.h |   4 ++--
 3 files changed, 11 insertions(+), 16 deletions(-)

diffs (104 lines):

diff -r f39f2d3bda41 -r e56e18afa536 usr.sbin/timed/timedc/cmds.c
--- a/usr.sbin/timed/timedc/cmds.c      Sat Jul 06 21:59:26 2002 +0000
+++ b/usr.sbin/timed/timedc/cmds.c      Sat Jul 06 22:01:40 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cmds.c,v 1.10 2001/09/02 00:13:08 reinoud Exp $        */
+/*     $NetBSD: cmds.c,v 1.11 2002/07/06 22:01:40 wiz Exp $    */
 
 /*-
  * Copyright (c) 1985, 1993 The Regents of the University of California.
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)cmds.c     8.2 (Berkeley) 3/26/95";
 #else
-__RCSID("$NetBSD: cmds.c,v 1.10 2001/09/02 00:13:08 reinoud Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.11 2002/07/06 22:01:40 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -167,9 +167,7 @@
  * measurement.
  */
 void
-clockdiff(argc, argv)
-       int argc;
-       char *argv[];
+clockdiff(int argc, char *argv[])
 {
        int measure_status;
        extern int measure(u_long, u_long, char *, struct sockaddr_in*, int);
@@ -479,7 +477,7 @@
 }
 
 int
-priv_resources()
+priv_resources(void)
 {
        int port;
        struct sockaddr_in sin;
diff -r f39f2d3bda41 -r e56e18afa536 usr.sbin/timed/timedc/timedc.c
--- a/usr.sbin/timed/timedc/timedc.c    Sat Jul 06 21:59:26 2002 +0000
+++ b/usr.sbin/timed/timedc/timedc.c    Sat Jul 06 22:01:40 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: timedc.c,v 1.8 2001/09/02 00:13:08 reinoud Exp $       */
+/*     $NetBSD: timedc.c,v 1.9 2002/07/06 22:01:41 wiz Exp $   */
 
 /*-
  * Copyright (c) 1985, 1993 The Regents of the University of California.
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)timedc.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: timedc.c,v 1.8 2001/09/02 00:13:08 reinoud Exp $");
+__RCSID("$NetBSD: timedc.c,v 1.9 2002/07/06 22:01:41 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -135,8 +135,7 @@
 }
 
 void
-intr(signo)
-       int signo;
+intr(int signo)
 {
        if (!fromatty)
                exit(0);
@@ -179,7 +178,7 @@
  * Slice a string up into argc/argv.
  */
 void
-makeargv()
+makeargv(void)
 {
        register char *cp;
        register char **argp = margv;
@@ -207,9 +206,7 @@
  * Help command.
  */
 void
-help(argc, argv)
-       int argc;
-       char *argv[];
+help(int argc, char *argv[])
 {
        register struct cmd *c;
        extern struct cmd cmdtab[];
diff -r f39f2d3bda41 -r e56e18afa536 usr.sbin/timed/timedc/timedc.h
--- a/usr.sbin/timed/timedc/timedc.h    Sat Jul 06 21:59:26 2002 +0000
+++ b/usr.sbin/timed/timedc/timedc.h    Sat Jul 06 22:01:40 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: timedc.h,v 1.7 2001/09/02 00:13:08 reinoud Exp $       */
+/*     $NetBSD: timedc.h,v 1.8 2002/07/06 22:01:41 wiz Exp $   */
 
 /*-
  * Copyright (c) 1985, 1993 The Regents of the University of California.
@@ -56,7 +56,7 @@
 struct cmd {
        char    *c_name;                /* command name */
        char    *c_help;                /* help message */
-       void    (*c_handler) __P((int, char **)); /* routine to do the work */
+       void    (*c_handler)(int, char **); /* routine to do the work */
        int     c_priv;                 /* privileged command */
 };
 



Home | Main Index | Thread Index | Old Index