Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/timed/timed ANSIfy, remove __P().



details:   https://anonhg.NetBSD.org/src/rev/2a4f32eba650
branches:  trunk
changeset: 533669:2a4f32eba650
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sat Jul 06 22:08:30 2002 +0000

description:
ANSIfy, remove __P().

diffstat:

 usr.sbin/timed/timed/acksend.c      |   8 +++-----
 usr.sbin/timed/timed/byteorder.c    |   8 +++-----
 usr.sbin/timed/timed/candidate.c    |   5 ++---
 usr.sbin/timed/timed/master.c       |  10 +++++-----
 usr.sbin/timed/timed/networkdelta.c |   6 +++---
 usr.sbin/timed/timed/readmsg.c      |  14 ++++++--------
 usr.sbin/timed/timed/slave.c        |   6 +++---
 usr.sbin/timed/timed/timed.c        |  17 +++++++----------
 8 files changed, 32 insertions(+), 42 deletions(-)

diffs (truncated from 304 to 300 lines):

diff -r e56e18afa536 -r 2a4f32eba650 usr.sbin/timed/timed/acksend.c
--- a/usr.sbin/timed/timed/acksend.c    Sat Jul 06 22:01:40 2002 +0000
+++ b/usr.sbin/timed/timed/acksend.c    Sat Jul 06 22:08:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acksend.c,v 1.6 2001/09/02 00:13:05 reinoud Exp $      */
+/*     $NetBSD: acksend.c,v 1.7 2002/07/06 22:08:30 wiz Exp $  */
 
 /*-
  * Copyright (c) 1985, 1993 The Regents of the University of California.
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)acksend.c  8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: acksend.c,v 1.6 2001/09/02 00:13:05 reinoud Exp $");
+__RCSID("$NetBSD: acksend.c,v 1.7 2002/07/06 22:08:30 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -50,9 +50,7 @@
 extern u_short sequence;
 
 void
-xmit(int type,
-     u_short seq,
-     struct sockaddr_in *addr)
+xmit(int type, u_short seq, struct sockaddr_in *addr)
 {
        static struct tsp msg;
 
diff -r e56e18afa536 -r 2a4f32eba650 usr.sbin/timed/timed/byteorder.c
--- a/usr.sbin/timed/timed/byteorder.c  Sat Jul 06 22:01:40 2002 +0000
+++ b/usr.sbin/timed/timed/byteorder.c  Sat Jul 06 22:08:30 2002 +0000
@@ -36,7 +36,7 @@
 #if 0
 static char sccsid[] = "@(#)byteorder.c        8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: byteorder.c,v 1.6 2001/09/02 00:13:05 reinoud Exp $");
+__RCSID("$NetBSD: byteorder.c,v 1.7 2002/07/06 22:08:31 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -47,8 +47,7 @@
  * messages. Protocol is defined in /usr/include/protocols/timed.h
  */
 void
-bytenetorder(ptr)
-       struct tsp *ptr;
+bytenetorder(struct tsp *ptr)
 {
        ptr->tsp_seq = htons((u_short)ptr->tsp_seq);
        switch (ptr->tsp_type) {
@@ -67,8 +66,7 @@
 }
 
 void
-bytehostorder(ptr)
-       struct tsp *ptr;
+bytehostorder(struct tsp *ptr)
 {
        ptr->tsp_seq = ntohs((u_short)ptr->tsp_seq);
        switch (ptr->tsp_type) {
diff -r e56e18afa536 -r 2a4f32eba650 usr.sbin/timed/timed/candidate.c
--- a/usr.sbin/timed/timed/candidate.c  Sat Jul 06 22:01:40 2002 +0000
+++ b/usr.sbin/timed/timed/candidate.c  Sat Jul 06 22:08:30 2002 +0000
@@ -36,7 +36,7 @@
 #if 0
 static char sccsid[] = "@(#)candidate.c        8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: candidate.c,v 1.7 2001/09/02 00:13:05 reinoud Exp $");
+__RCSID("$NetBSD: candidate.c,v 1.8 2002/07/06 22:08:31 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -49,8 +49,7 @@
  * candidate sends an election request, the candidature is withdrawn.
  */
 int
-election(net)
-       struct netinfo *net;
+election(struct netinfo *net)
 {
        struct tsp *resp, msg;
        struct timeval then, wait;
diff -r e56e18afa536 -r 2a4f32eba650 usr.sbin/timed/timed/master.c
--- a/usr.sbin/timed/timed/master.c     Sat Jul 06 22:01:40 2002 +0000
+++ b/usr.sbin/timed/timed/master.c     Sat Jul 06 22:08:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: master.c,v 1.9 2001/09/02 00:13:06 reinoud Exp $       */
+/*     $NetBSD: master.c,v 1.10 2002/07/06 22:08:31 wiz Exp $  */
 
 /*-
  * Copyright (c) 1985, 1993 The Regents of the University of California.
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)master.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: master.c,v 1.9 2001/09/02 00:13:06 reinoud Exp $");
+__RCSID("$NetBSD: master.c,v 1.10 2002/07/06 22:08:31 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -61,7 +61,7 @@
 
 static void mchgdate(struct tsp*);
 
-extern void    logwtmp __P((char *, char *, char *));
+extern void    logwtmp(char *, char *, char *);
 
 
 
@@ -75,7 +75,7 @@
  * takes the appropriate action.
  */
 int
-master()
+master(void)
 {
        struct hosttbl *htp;
        long pollingtime;
@@ -466,7 +466,7 @@
  * has received the command to set the network time
  */
 void
-spreadtime()
+spreadtime(void)
 {
        struct hosttbl *htp;
        struct tsp to;
diff -r e56e18afa536 -r 2a4f32eba650 usr.sbin/timed/timed/networkdelta.c
--- a/usr.sbin/timed/timed/networkdelta.c       Sat Jul 06 22:01:40 2002 +0000
+++ b/usr.sbin/timed/timed/networkdelta.c       Sat Jul 06 22:08:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: networkdelta.c,v 1.9 2001/09/02 00:13:06 reinoud Exp $ */
+/*     $NetBSD: networkdelta.c,v 1.10 2002/07/06 22:08:31 wiz Exp $    */
 
 /*-
  * Copyright (c) 1985, 1993 The Regents of the University of California.
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)networkdelta.c     8.3 (Berkeley) 4/27/95";
 #else
-__RCSID("$NetBSD: networkdelta.c,v 1.9 2001/09/02 00:13:06 reinoud Exp $");
+__RCSID("$NetBSD: networkdelta.c,v 1.10 2002/07/06 22:08:31 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -69,7 +69,7 @@
  *     bad values.
  */
 long
-networkdelta()
+networkdelta(void)
 {
        struct hosttbl *htp;
        long med;
diff -r e56e18afa536 -r 2a4f32eba650 usr.sbin/timed/timed/readmsg.c
--- a/usr.sbin/timed/timed/readmsg.c    Sat Jul 06 22:01:40 2002 +0000
+++ b/usr.sbin/timed/timed/readmsg.c    Sat Jul 06 22:08:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: readmsg.c,v 1.11 2001/09/02 00:13:07 reinoud Exp $     */
+/*     $NetBSD: readmsg.c,v 1.12 2002/07/06 22:08:31 wiz Exp $ */
 
 /*-
  * Copyright (c) 1985, 1993 The Regents of the University of California.
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)readmsg.c  8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: readmsg.c,v 1.11 2001/09/02 00:13:07 reinoud Exp $");
+__RCSID("$NetBSD: readmsg.c,v 1.12 2002/07/06 22:08:31 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -343,7 +343,7 @@
  * only the type ACK is to be sent by a slave
  */
 void
-slaveack()
+slaveack(void)
 {
        switch(msgin.tsp_type) {
 
@@ -375,7 +375,7 @@
  * These packets should be acknowledged.
  */
 void
-ignoreack()
+ignoreack(void)
 {
        switch(msgin.tsp_type) {
 
@@ -403,7 +403,7 @@
  * to the messages received by a master
  */
 void
-masterack()
+masterack(void)
 {
        struct tsp resp;
 
@@ -446,9 +446,7 @@
  * Print a TSP message
  */
 void
-print(msg, addr)
-struct tsp *msg;
-struct sockaddr_in *addr;
+print(struct tsp *msg, struct sockaddr_in *addr)
 {
        char tm[26];
        time_t msgtime;
diff -r e56e18afa536 -r 2a4f32eba650 usr.sbin/timed/timed/slave.c
--- a/usr.sbin/timed/timed/slave.c      Sat Jul 06 22:01:40 2002 +0000
+++ b/usr.sbin/timed/timed/slave.c      Sat Jul 06 22:08:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: slave.c,v 1.9 2001/09/02 00:13:07 reinoud Exp $        */
+/*     $NetBSD: slave.c,v 1.10 2002/07/06 22:08:31 wiz Exp $   */
 
 /*-
  * Copyright (c) 1985, 1993 The Regents of the University of California.
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)slave.c    8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: slave.c,v 1.9 2001/09/02 00:13:07 reinoud Exp $");
+__RCSID("$NetBSD: slave.c,v 1.10 2002/07/06 22:08:31 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -64,7 +64,7 @@
 
 
 int
-slave()
+slave(void)
 {
        int tries;
        long electiontime, refusetime, looktime, looptime, adjtime;
diff -r e56e18afa536 -r 2a4f32eba650 usr.sbin/timed/timed/timed.c
--- a/usr.sbin/timed/timed/timed.c      Sat Jul 06 22:01:40 2002 +0000
+++ b/usr.sbin/timed/timed/timed.c      Sat Jul 06 22:08:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: timed.c,v 1.14 2002/06/23 17:47:45 perry Exp $ */
+/*     $NetBSD: timed.c,v 1.15 2002/07/06 22:08:31 wiz Exp $   */
 
 /*-
  * Copyright (c) 1985, 1993 The Regents of the University of California.
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)timed.c    8.2 (Berkeley) 3/26/95";
 #else
-__RCSID("$NetBSD: timed.c,v 1.14 2002/06/23 17:47:45 perry Exp $");
+__RCSID("$NetBSD: timed.c,v 1.15 2002/07/06 22:08:31 wiz Exp $");
 #endif
 #endif /* not lint */
 
@@ -117,7 +117,7 @@
  */
 
 int
-main(int argc, char **argv)
+main(int argc, char *argv[])
 {
        int on;
        int ret;
@@ -473,9 +473,7 @@
 /* suppress an upstart, untrustworthy, self-appointed master
  */
 void
-suppress(struct sockaddr_in *addr,
-         char *name,
-        struct netinfo *net)
+suppress(struct sockaddr_in *addr, char *name, struct netinfo *net)
 {
        struct sockaddr_in tgt;
        char tname[MAXHOSTNAMELEN];
@@ -599,7 +597,7 @@
  * networks;
  */
 void
-setstatus()
+setstatus(void)
 {
        struct netinfo *ntp;
 
@@ -718,7 +716,7 @@
 }
 
 char *
-date()
+date(void)
 {
        struct  timeval tv;
        time_t t;
@@ -846,8 +844,7 @@
 /* see if a machine is trustworthy
  */
 int                                    /* 1=trust hp to change our date */
-good_host_name(name)
-       char *name;



Home | Main Index | Thread Index | Old Index