ANSIfy, remove __P().
This commit is contained in:
parent
557fe0a8de
commit
0fb8fdab47
|
@ -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.
|
* Copyright (c) 1985, 1993 The Regents of the University of California.
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)acksend.c 8.1 (Berkeley) 6/6/93";
|
static char sccsid[] = "@(#)acksend.c 8.1 (Berkeley) 6/6/93";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -50,9 +50,7 @@ struct tsp *answer;
|
||||||
extern u_short sequence;
|
extern u_short sequence;
|
||||||
|
|
||||||
void
|
void
|
||||||
xmit(int type,
|
xmit(int type, u_short seq, struct sockaddr_in *addr)
|
||||||
u_short seq,
|
|
||||||
struct sockaddr_in *addr)
|
|
||||||
{
|
{
|
||||||
static struct tsp msg;
|
static struct tsp msg;
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)byteorder.c 8.1 (Berkeley) 6/6/93";
|
static char sccsid[] = "@(#)byteorder.c 8.1 (Berkeley) 6/6/93";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -47,8 +47,7 @@ __RCSID("$NetBSD: byteorder.c,v 1.6 2001/09/02 00:13:05 reinoud Exp $");
|
||||||
* messages. Protocol is defined in /usr/include/protocols/timed.h
|
* messages. Protocol is defined in /usr/include/protocols/timed.h
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
bytenetorder(ptr)
|
bytenetorder(struct tsp *ptr)
|
||||||
struct tsp *ptr;
|
|
||||||
{
|
{
|
||||||
ptr->tsp_seq = htons((u_short)ptr->tsp_seq);
|
ptr->tsp_seq = htons((u_short)ptr->tsp_seq);
|
||||||
switch (ptr->tsp_type) {
|
switch (ptr->tsp_type) {
|
||||||
|
@ -67,8 +66,7 @@ bytenetorder(ptr)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
bytehostorder(ptr)
|
bytehostorder(struct tsp *ptr)
|
||||||
struct tsp *ptr;
|
|
||||||
{
|
{
|
||||||
ptr->tsp_seq = ntohs((u_short)ptr->tsp_seq);
|
ptr->tsp_seq = ntohs((u_short)ptr->tsp_seq);
|
||||||
switch (ptr->tsp_type) {
|
switch (ptr->tsp_type) {
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)candidate.c 8.1 (Berkeley) 6/6/93";
|
static char sccsid[] = "@(#)candidate.c 8.1 (Berkeley) 6/6/93";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -49,8 +49,7 @@ __RCSID("$NetBSD: candidate.c,v 1.7 2001/09/02 00:13:05 reinoud Exp $");
|
||||||
* candidate sends an election request, the candidature is withdrawn.
|
* candidate sends an election request, the candidature is withdrawn.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
election(net)
|
election(struct netinfo *net)
|
||||||
struct netinfo *net;
|
|
||||||
{
|
{
|
||||||
struct tsp *resp, msg;
|
struct tsp *resp, msg;
|
||||||
struct timeval then, wait;
|
struct timeval then, wait;
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1985, 1993 The Regents of the University of California.
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)master.c 8.1 (Berkeley) 6/6/93";
|
static char sccsid[] = "@(#)master.c 8.1 (Berkeley) 6/6/93";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ static int slvcount; /* slaves listening to our clock */
|
||||||
|
|
||||||
static void mchgdate(struct tsp*);
|
static void mchgdate(struct tsp*);
|
||||||
|
|
||||||
extern void logwtmp __P((char *, char *, char *));
|
extern void logwtmp(char *, char *, char *);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ extern void logwtmp __P((char *, char *, char *));
|
||||||
* takes the appropriate action.
|
* takes the appropriate action.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
master()
|
master(void)
|
||||||
{
|
{
|
||||||
struct hosttbl *htp;
|
struct hosttbl *htp;
|
||||||
long pollingtime;
|
long pollingtime;
|
||||||
|
@ -466,7 +466,7 @@ synch(long mydelta)
|
||||||
* has received the command to set the network time
|
* has received the command to set the network time
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
spreadtime()
|
spreadtime(void)
|
||||||
{
|
{
|
||||||
struct hosttbl *htp;
|
struct hosttbl *htp;
|
||||||
struct tsp to;
|
struct tsp to;
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1985, 1993 The Regents of the University of California.
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)networkdelta.c 8.3 (Berkeley) 4/27/95";
|
static char sccsid[] = "@(#)networkdelta.c 8.3 (Berkeley) 4/27/95";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ static long median(float, float*, long*, long*, unsigned int);
|
||||||
* bad values.
|
* bad values.
|
||||||
*/
|
*/
|
||||||
long
|
long
|
||||||
networkdelta()
|
networkdelta(void)
|
||||||
{
|
{
|
||||||
struct hosttbl *htp;
|
struct hosttbl *htp;
|
||||||
long med;
|
long med;
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1985, 1993 The Regents of the University of California.
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)readmsg.c 8.1 (Berkeley) 6/6/93";
|
static char sccsid[] = "@(#)readmsg.c 8.1 (Berkeley) 6/6/93";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -343,7 +343,7 @@ again:
|
||||||
* only the type ACK is to be sent by a slave
|
* only the type ACK is to be sent by a slave
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
slaveack()
|
slaveack(void)
|
||||||
{
|
{
|
||||||
switch(msgin.tsp_type) {
|
switch(msgin.tsp_type) {
|
||||||
|
|
||||||
|
@ -375,7 +375,7 @@ slaveack()
|
||||||
* These packets should be acknowledged.
|
* These packets should be acknowledged.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
ignoreack()
|
ignoreack(void)
|
||||||
{
|
{
|
||||||
switch(msgin.tsp_type) {
|
switch(msgin.tsp_type) {
|
||||||
|
|
||||||
|
@ -403,7 +403,7 @@ ignoreack()
|
||||||
* to the messages received by a master
|
* to the messages received by a master
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
masterack()
|
masterack(void)
|
||||||
{
|
{
|
||||||
struct tsp resp;
|
struct tsp resp;
|
||||||
|
|
||||||
|
@ -446,9 +446,7 @@ masterack()
|
||||||
* Print a TSP message
|
* Print a TSP message
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
print(msg, addr)
|
print(struct tsp *msg, struct sockaddr_in *addr)
|
||||||
struct tsp *msg;
|
|
||||||
struct sockaddr_in *addr;
|
|
||||||
{
|
{
|
||||||
char tm[26];
|
char tm[26];
|
||||||
time_t msgtime;
|
time_t msgtime;
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1985, 1993 The Regents of the University of California.
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)slave.c 8.1 (Berkeley) 6/6/93";
|
static char sccsid[] = "@(#)slave.c 8.1 (Berkeley) 6/6/93";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ extern void logwtmp(char *, char *, char *);
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
slave()
|
slave(void)
|
||||||
{
|
{
|
||||||
int tries;
|
int tries;
|
||||||
long electiontime, refusetime, looktime, looptime, adjtime;
|
long electiontime, refusetime, looktime, looptime, adjtime;
|
||||||
|
|
|
@ -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.
|
* Copyright (c) 1985, 1993 The Regents of the University of California.
|
||||||
|
@ -44,7 +44,7 @@ __COPYRIGHT(
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)timed.c 8.2 (Berkeley) 3/26/95";
|
static char sccsid[] = "@(#)timed.c 8.2 (Berkeley) 3/26/95";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ static void add_good_host(char*,char);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int on;
|
int on;
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -473,9 +473,7 @@ main(int argc, char **argv)
|
||||||
/* suppress an upstart, untrustworthy, self-appointed master
|
/* suppress an upstart, untrustworthy, self-appointed master
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
suppress(struct sockaddr_in *addr,
|
suppress(struct sockaddr_in *addr, char *name, struct netinfo *net)
|
||||||
char *name,
|
|
||||||
struct netinfo *net)
|
|
||||||
{
|
{
|
||||||
struct sockaddr_in tgt;
|
struct sockaddr_in tgt;
|
||||||
char tname[MAXHOSTNAMELEN];
|
char tname[MAXHOSTNAMELEN];
|
||||||
|
@ -599,7 +597,7 @@ lookformaster(struct netinfo *ntp)
|
||||||
* networks;
|
* networks;
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
setstatus()
|
setstatus(void)
|
||||||
{
|
{
|
||||||
struct netinfo *ntp;
|
struct netinfo *ntp;
|
||||||
|
|
||||||
|
@ -718,7 +716,7 @@ casual(long inf, long sup)
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
date()
|
date(void)
|
||||||
{
|
{
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
time_t t;
|
time_t t;
|
||||||
|
@ -846,8 +844,7 @@ get_goodgroup(int force)
|
||||||
/* see if a machine is trustworthy
|
/* see if a machine is trustworthy
|
||||||
*/
|
*/
|
||||||
int /* 1=trust hp to change our date */
|
int /* 1=trust hp to change our date */
|
||||||
good_host_name(name)
|
good_host_name(char *name)
|
||||||
char *name;
|
|
||||||
{
|
{
|
||||||
register struct goodhost *ghp = goodhosts;
|
register struct goodhost *ghp = goodhosts;
|
||||||
register char c;
|
register char c;
|
||||||
|
|
Loading…
Reference in New Issue