Add rcsid. Change exit(-1). Use err() instead of warn()/exit().

This commit is contained in:
Philippe Charnier 1998-01-16 07:17:45 +00:00
parent 6e1a705dd4
commit aa05c002fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32538
13 changed files with 54 additions and 46 deletions

View file

@ -5,11 +5,13 @@
*
* The mrouted program is COPYRIGHT 1989 by The Board of Trustees of
* Leland Stanford Junior University.
*
*
* $Id$
*/
#ifndef lint
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include "defs.h"
/* the code below implements a callout queue */

View file

@ -5,15 +5,15 @@
*
* The mrouted program is COPYRIGHT 1989 by The Board of Trustees of
* Leland Stanford Junior University.
*
*
* $Id$
*/
#ifndef lint
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include "defs.h"
/*
* Query the kernel to find network interfaces that are multicast-capable
* and install them in the uvifs array.

View file

@ -5,15 +5,15 @@
*
* The mrouted program is COPYRIGHT 1989 by The Board of Trustees of
* Leland Stanford Junior University.
*
*
* $Id$
*/
#ifndef lint
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include "defs.h"
/*
* Exported variables.
*/

View file

@ -5,15 +5,15 @@
*
* The mrouted program is COPYRIGHT 1989 by The Board of Trustees of
* Leland Stanford Junior University.
*
*
* $Id$
*/
#ifndef lint
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include "defs.h"
/*
* Exported variables.
*/

View file

@ -5,15 +5,15 @@
*
* The mrouted program is COPYRIGHT 1989 by The Board of Trustees of
* Leland Stanford Junior University.
*
*
* $Id$
*/
#ifndef lint
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include "defs.h"
void k_set_rcvbuf(bufsize)
int bufsize;
{

View file

@ -20,7 +20,7 @@
#ifndef lint
static const char rcsid[] =
"$Id$";
"$Id: main.c,v 1.12 1997/09/30 06:15:01 charnier Exp $";
#endif
#include <err.h>
@ -728,7 +728,7 @@ log(severity, syserr, format, va_alist)
syslog(severity, "%s", msg);
}
if (severity <= LOG_ERR) exit(-1);
if (severity <= LOG_ERR) exit(1);
}
}

View file

@ -1,7 +1,5 @@
/* Mapper for connections between MRouteD multicast routers.
* Written by Pavel Curtis <Pavel@PARC.Xerox.Com>
*
* $Id: mapper.c,v 1.10 1997/02/22 16:06:57 peter Exp $
*/
/*
@ -21,6 +19,11 @@
* These notices must be retained in any copies of any part of this software.
*/
#ifndef lint
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include <err.h>
#include <string.h>
#include <netdb.h>
@ -201,7 +204,7 @@ log(severity, syserr, format, va_alist)
}
if (severity <= LOG_ERR)
exit(-1);
exit(1);
}

View file

@ -61,7 +61,7 @@
#ifndef lint
static const char rcsid[] =
"$Id$";
"$Id: mrinfo.c,v 1.13 1997/09/30 06:15:08 charnier Exp $";
/* original rcsid:
"@(#) Header: mrinfo.c,v 1.6 93/04/08 15:14:16 van Exp (LBL)";
*/
@ -170,7 +170,7 @@ log(severity, syserr, format, va_alist)
}
if (severity <= LOG_ERR)
exit(-1);
exit(1);
}
/*

View file

@ -100,7 +100,7 @@
#ifndef lint
static const char rcsid[] =
"$Id$";
"$Id: mtrace.c,v 1.12 1997/09/30 06:15:16 charnier Exp $";
#endif
#include <ctype.h>
@ -2234,17 +2234,13 @@ char *argv[];
int error;
error = sysinfo(SI_HOSTNAME, myhostname, sizeof(myhostname));
if (error == -1) {
warn("getting my hostname");
exit(-1);
}
if (error == -1)
err(1, "getting my hostname");
hp = gethostbyname(myhostname);
if (hp == NULL || hp->h_addrtype != AF_INET ||
hp->h_length != sizeof(addr.sin_addr)) {
warn("finding IP address for my hostname");
exit(-1);
}
hp->h_length != sizeof(addr.sin_addr))
err(1, "finding IP address for my hostname");
memcpy((char *)&addr.sin_addr.s_addr, hp->h_addr, hp->h_length);
}
@ -2668,7 +2664,7 @@ log(severity, syserr, format, va_alist)
else
fprintf(stderr, ": errno %d\n", syserr);
}
if (severity <= LOG_ERR) exit(-1);
if (severity <= LOG_ERR) exit(1);
}
/* dummies */

View file

@ -5,11 +5,12 @@
*
* The mrouted program is COPYRIGHT 1989 by The Board of Trustees of
* Leland Stanford Junior University.
*
*
* $Id: prune.c,v 1.13 1997/02/22 16:07:03 peter Exp $
*/
#ifndef lint
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include "defs.h"

View file

@ -5,15 +5,15 @@
*
* The mrouted program is COPYRIGHT 1989 by The Board of Trustees of
* Leland Stanford Junior University.
*
*
* $Id$
*/
#ifndef lint
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include "defs.h"
/*
* This define statement saves a lot of space later
*/

View file

@ -30,6 +30,11 @@
/* May 1995 -- Added support for Route Change Notification */
#ifndef lint
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#ifdef RSRR
#include "defs.h"

View file

@ -5,11 +5,12 @@
*
* The mrouted program is COPYRIGHT 1989 by The Board of Trustees of
* Leland Stanford Junior University.
*
*
* $Id$
*/
#ifndef lint
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include "defs.h"
#include <fcntl.h>