Negative exit code cleanup: Replace exit(-x) with exit(x).
As seen on tech-userlevel.
This commit is contained in:
parent
ff71a021ca
commit
14dbdf5518
2
crypto/dist/kame/racoon/kmpstat.c
vendored
2
crypto/dist/kame/racoon/kmpstat.c
vendored
@ -233,7 +233,7 @@ main(ac, av)
|
||||
exit(0);
|
||||
|
||||
bad:
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
static int
|
||||
|
4
dist/bind/bin/dnskeygen/dnskeygen.c
vendored
4
dist/bind/bin/dnskeygen/dnskeygen.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dnskeygen.c,v 1.2 2001/01/27 07:21:57 itojun Exp $ */
|
||||
/* $NetBSD: dnskeygen.c,v 1.3 2001/04/06 11:13:53 wiz Exp $ */
|
||||
|
||||
#if !defined(lint) && !defined(SABER)
|
||||
static const char rcsid[] = "Id: dnskeygen.c,v 1.11 2000/12/23 08:14:31 vixie Exp";
|
||||
@ -315,7 +315,7 @@ usage(char *str, int flag){
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
exit (-3);
|
||||
exit (3);
|
||||
}
|
||||
|
||||
|
||||
|
24
dist/bind/bin/dnsquery/dnsquery.c
vendored
24
dist/bind/bin/dnsquery/dnsquery.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dnsquery.c,v 1.2 2001/01/27 07:21:57 itojun Exp $ */
|
||||
/* $NetBSD: dnsquery.c,v 1.3 2001/04/06 11:13:53 wiz Exp $ */
|
||||
|
||||
#if !defined(lint) && !defined(SABER)
|
||||
static const char rcsid[] = "Id: dnsquery.c,v 8.15 2000/12/23 08:14:32 vixie Exp";
|
||||
@ -68,7 +68,7 @@ main(int argc, char *argv[]) {
|
||||
/* if no args, exit */
|
||||
if (argc == 1) {
|
||||
fprintf(stderr, "Usage: %s [-h] host [-n ns] [-t type] [-c class] [-r retry] [-p period] [-s] [-v] [-d] [-a]\n", argv[0]);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* handle args */
|
||||
@ -84,7 +84,7 @@ main(int argc, char *argv[]) {
|
||||
case 'h' : if (strlen(optarg) >= sizeof(name)) {
|
||||
fprintf(stderr,
|
||||
"Domain name too long (%s)\n", optarg);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
} else
|
||||
strcpy(name, optarg);
|
||||
break;
|
||||
@ -98,7 +98,7 @@ main(int argc, char *argv[]) {
|
||||
class = proto_class;
|
||||
else {
|
||||
fprintf(stderr, "Bad class (%s)\n", optarg);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -112,7 +112,7 @@ main(int argc, char *argv[]) {
|
||||
type = proto_type;
|
||||
else {
|
||||
fprintf(stderr, "Bad type (%s)\n", optarg);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -137,7 +137,7 @@ main(int argc, char *argv[]) {
|
||||
fprintf(stderr,
|
||||
"res_ninit() failed\n"
|
||||
);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
if (nameservers >= MAXNS) break;
|
||||
(void) inet_aton(optarg,
|
||||
@ -148,7 +148,7 @@ main(int argc, char *argv[]) {
|
||||
fprintf(stderr,
|
||||
"Bad nameserver (%s)\n",
|
||||
optarg);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
memcpy(&q_nsaddr[nameservers],
|
||||
q_nsname->h_addr, INADDRSZ);
|
||||
@ -160,14 +160,14 @@ main(int argc, char *argv[]) {
|
||||
|
||||
default : fprintf(stderr,
|
||||
"\tUsage: %s [-n ns] [-h host] [-t type] [-c class] [-r retry] [-p period] [-s] [-v] [-d] [-a]\n", argv[0]);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
if (optind < argc) {
|
||||
if (strlen(argv[optind]) >= sizeof(name)) {
|
||||
fprintf(stderr,
|
||||
"Domain name too long (%s)\n", argv[optind]);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
} else {
|
||||
strcpy(name, argv[optind]);
|
||||
}
|
||||
@ -178,7 +178,7 @@ main(int argc, char *argv[]) {
|
||||
if (!(res.options & RES_INIT))
|
||||
if (res_ninit(&res) == -1) {
|
||||
fprintf(stderr, "res_ninit() failed\n");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -210,13 +210,13 @@ main(int argc, char *argv[]) {
|
||||
if (n < 0) {
|
||||
fprintf(stderr, "Query failed (h_errno = %d) : %s\n",
|
||||
h_errno, h_errlist[h_errno]);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
} else if ((n = res_nsearch(&res, name, class, type,
|
||||
answer, len)) < 0) {
|
||||
fprintf(stderr, "Query failed (h_errno = %d) : %s\n",
|
||||
h_errno, h_errlist[h_errno]);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
res_pquery(&res, answer, n, stdout);
|
||||
exit(0);
|
||||
|
4
dist/bind/lib/dst/bsafe_link.c
vendored
4
dist/bind/lib/dst/bsafe_link.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bsafe_link.c,v 1.2 2001/01/27 07:22:02 itojun Exp $ */
|
||||
/* $NetBSD: bsafe_link.c,v 1.3 2001/04/06 11:13:53 wiz Exp $ */
|
||||
|
||||
#if defined(BSAFE) || defined(DNSSAFE)
|
||||
static const char rcsid[] = "Header: /proj/cvs/isc/bind8/src/lib/dst/bsafe_link.c,v 1.11 1999/10/13 16:39:22 vixie Exp";
|
||||
@ -1050,7 +1050,7 @@ dst_bsafe_md5digest(const int mode, B_ALGORITHM_OBJ *digest_obj,
|
||||
|
||||
if (digest_obj == NULL || *digest_obj == NULL) {
|
||||
printf("NO digest obj\n");
|
||||
exit(-33);
|
||||
exit(33);
|
||||
}
|
||||
|
||||
if ((mode & SIG_MODE_INIT) &&
|
||||
|
2
dist/cdk/demos/serial.c
vendored
2
dist/cdk/demos/serial.c
vendored
@ -107,7 +107,7 @@ int main (int argc, char **argv)
|
||||
{
|
||||
/* Create a pop-up dialog box... */
|
||||
printf ("Error: Open of <%s> failed.\n", port);
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
termInfo.c_cflag = CRTSCTS | CLOCAL;
|
||||
|
6
dist/cdk/demos/syb.c
vendored
6
dist/cdk/demos/syb.c
vendored
@ -163,7 +163,7 @@ int main (int argc, char **argv)
|
||||
mesg[0] = "<C></U>Fatal Error";
|
||||
mesg[1] = "<C>Could not connect to the Sybase database.";
|
||||
popupLabel (GPCdkScreen, mesg, 2);
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/* Load the history. */
|
||||
@ -200,7 +200,7 @@ int main (int argc, char **argv)
|
||||
{
|
||||
destroyCDKScreen (GPCdkScreen);
|
||||
endCDK ();
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/* Do this forever. */
|
||||
@ -574,7 +574,7 @@ DBPROCESS *loginToSybase (CDKSCREEN *screen, char *accountName, char *accountPas
|
||||
mesg[1] = "<C>Could not connect to the Sybase database.";
|
||||
popupLabel (screen, mesg, 2);
|
||||
refreshCDKScreen (screen);
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
8
dist/cdk/demos/vinstall.c
vendored
8
dist/cdk/demos/vinstall.c
vendored
@ -84,7 +84,7 @@ int main (int argc, char **argv)
|
||||
if (filename == 0)
|
||||
{
|
||||
fprintf (stderr, "Usage: %s %s\n", argv[0], FPUsage);
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/* Open the file list file and read it in. */
|
||||
@ -92,7 +92,7 @@ int main (int argc, char **argv)
|
||||
if (count == 0)
|
||||
{
|
||||
fprintf (stderr, "%s: Input filename <%s> is empty.\n", argv[0], filename);
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -191,7 +191,7 @@ int main (int argc, char **argv)
|
||||
{
|
||||
freeChar (fileList[x]);
|
||||
}
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -211,7 +211,7 @@ int main (int argc, char **argv)
|
||||
{
|
||||
freeChar (fileList[x]);
|
||||
}
|
||||
exit (-2);
|
||||
exit (2);
|
||||
}
|
||||
|
||||
/* Create the histogram. */
|
||||
|
8
dist/cdk/examples/vinstall.c
vendored
8
dist/cdk/examples/vinstall.c
vendored
@ -84,7 +84,7 @@ int main (int argc, char **argv)
|
||||
if (filename == 0)
|
||||
{
|
||||
fprintf (stderr, "Usage: %s %s\n", argv[0], FPUsage);
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/* Open the file list file and read it in. */
|
||||
@ -92,7 +92,7 @@ int main (int argc, char **argv)
|
||||
if (count == 0)
|
||||
{
|
||||
fprintf (stderr, "%s: Input filename <%s> is empty.\n", argv[0], filename);
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -191,7 +191,7 @@ int main (int argc, char **argv)
|
||||
{
|
||||
freeChar (fileList[x]);
|
||||
}
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -211,7 +211,7 @@ int main (int argc, char **argv)
|
||||
{
|
||||
freeChar (fileList[x]);
|
||||
}
|
||||
exit (-2);
|
||||
exit (2);
|
||||
}
|
||||
|
||||
/* Create the histogram. */
|
||||
|
4
dist/ntp/ntpdc/ntpdc.c
vendored
4
dist/ntp/ntpdc/ntpdc.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ntpdc.c,v 1.3 2000/10/10 12:43:42 itojun Exp $ */
|
||||
/* $NetBSD: ntpdc.c,v 1.4 2001/04/06 11:13:54 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* ntpdc - control and monitor your ntpd daemon
|
||||
@ -448,7 +448,7 @@ openhost(
|
||||
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
if (sockfd == INVALID_SOCKET) {
|
||||
error("socket");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
#else
|
||||
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
|
4
dist/ntp/ntpq/ntpq.c
vendored
4
dist/ntp/ntpq/ntpq.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ntpq.c,v 1.3 2000/10/10 12:51:20 itojun Exp $ */
|
||||
/* $NetBSD: ntpq.c,v 1.4 2001/04/06 11:13:54 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* ntpq - query an NTP server using mode 6 commands
|
||||
@ -629,7 +629,7 @@ openhost(
|
||||
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
if (sockfd == INVALID_SOCKET) {
|
||||
error("socket");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
#else
|
||||
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
|
6
dist/ntp/util/tickadj.c
vendored
6
dist/ntp/util/tickadj.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tickadj.c,v 1.1.1.1 2000/03/29 12:39:00 simonb Exp $ */
|
||||
/* $NetBSD: tickadj.c,v 1.2 2001/04/06 11:13:55 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* tickadj - read, and possibly modify, the kernel `tick' and
|
||||
@ -113,7 +113,7 @@ main(
|
||||
if (argc > 2)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s [tick_value]\n", argv[0]);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
else if (argc == 2)
|
||||
{
|
||||
@ -124,7 +124,7 @@ main(
|
||||
#endif
|
||||
{
|
||||
fprintf(stderr, "Silly value for tick: %s\n", argv[1]);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
#ifdef ADJ_TIMETICK
|
||||
txc.modes = ADJ_TIMETICK;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: download.c,v 1.1 1995/10/06 21:00:16 phil Exp $ */
|
||||
/* $NetBSD: download.c,v 1.2 2001/04/06 11:13:55 wiz Exp $ */
|
||||
|
||||
/*
|
||||
Hacked by Phil Nelson for use with NetBSD, 10/5/95.
|
||||
@ -132,7 +132,7 @@ usage(name)
|
||||
char *name;
|
||||
{
|
||||
fprintf (stderr, "usage: %s [-r] <file>\n", name);
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/* Output a character. If it is a CLT_C or ESC, then quote (preceed)
|
||||
@ -187,7 +187,7 @@ int fd;
|
||||
|
||||
if (0 == (len = lseek (fd, (off_t)0, 2))) {
|
||||
fprintf (stderr, "file length is zero\n");
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
lseek (fd, (off_t)0, 0);
|
||||
write_ch (START);
|
||||
@ -211,7 +211,7 @@ int fd;
|
||||
len = read (fd, buf, BUFSZ);
|
||||
if (-1 == len) {
|
||||
fprintf (stderr, "read failed\n");
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
if (len == 0) break;
|
||||
for (p = buf; p < buf + len; ++p) {
|
||||
@ -471,19 +471,19 @@ main (argc, argv)
|
||||
if (argc == 3) {
|
||||
if (1 != sscanf (argv[2], "%d", &port_num)) {
|
||||
fprintf (stderr, "Bad serial port, use 1 or 2\n");
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
--argc;
|
||||
}
|
||||
if (argc != 2) {
|
||||
fprintf (stderr, "usage: %s <file> [<serial port>]\n", argv[0]);
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
if (port_num == 1) port = 0x3f8;
|
||||
else if (port_num == 2) port = 0x2f8;
|
||||
else {
|
||||
fprintf (stderr, "Bad serial port, use 1 or 2\n");
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
#else
|
||||
@ -519,7 +519,7 @@ main (argc, argv)
|
||||
|
||||
if (0 > (fd = open (argv[1], OPEN_FLAGS))) {
|
||||
fprintf (stderr, "can not open \"%s\" for reading\n", argv[1]);
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
init_port(1);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: teach.c,v 1.12 2001/02/05 00:23:59 christos Exp $ */
|
||||
/* $NetBSD: teach.c,v 1.13 2001/04/06 11:13:52 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)teach.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: teach.c,v 1.12 2001/02/05 00:23:59 christos Exp $");
|
||||
__RCSID("$NetBSD: teach.c,v 1.13 2001/04/06 11:13:52 wiz Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -158,5 +158,5 @@ leave()
|
||||
fixtty(&old);
|
||||
execl(EXEC, "backgammon", "-n", args[0]?args:0, 0);
|
||||
writel("Help! Backgammon program is missing\007!!\n");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mille.c,v 1.10 2000/05/08 07:56:04 mycroft Exp $ */
|
||||
/* $NetBSD: mille.c,v 1.11 2001/04/06 11:13:52 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1993
|
||||
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1982, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)mille.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: mille.c,v 1.10 2000/05/08 07:56:04 mycroft Exp $");
|
||||
__RCSID("$NetBSD: mille.c,v 1.11 2001/04/06 11:13:52 wiz Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -78,7 +78,7 @@ main(ac, av)
|
||||
break;
|
||||
default:
|
||||
printf("usage: milles [ restore_file ]\n");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
/* NOTREACHED */
|
||||
}
|
||||
Play = PLAYER;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rmtlib.c,v 1.16 2001/01/05 05:42:45 enami Exp $ */
|
||||
/* $NetBSD: rmtlib.c,v 1.17 2001/04/06 11:13:55 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* rmt --- remote tape emulator subroutines
|
||||
@ -223,7 +223,7 @@ _rmt_rexec(const char *host, const char *user)
|
||||
rexecserv = getservbyname("exec", "tcp");
|
||||
if (rexecserv == NULL) {
|
||||
fprintf(stderr, "? exec/tcp: service not available.");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
if ((user != NULL) && *user == '\0')
|
||||
user = NULL;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: skeysubr.c,v 1.19 2001/03/11 13:57:45 mjl Exp $ */
|
||||
/* $NetBSD: skeysubr.c,v 1.20 2001/04/06 11:13:55 wiz Exp $ */
|
||||
|
||||
/* S/KEY v1.1b (skeysubr.c)
|
||||
*
|
||||
@ -358,7 +358,7 @@ static void trapped(int sig)
|
||||
/* Turn on echo if necesary */
|
||||
skey_echo(1);
|
||||
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rexecd.c,v 1.7 2000/10/10 19:54:38 is Exp $ */
|
||||
/* $NetBSD: rexecd.c,v 1.8 2001/04/06 11:13:52 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -40,7 +40,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "from: @(#)rexecd.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: rexecd.c,v 1.7 2000/10/10 19:54:38 is Exp $");
|
||||
__RCSID("$NetBSD: rexecd.c,v 1.8 2001/04/06 11:13:52 wiz Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -219,13 +219,13 @@ doit(f, fromp)
|
||||
fds[1].fd = pv[0];
|
||||
fds[0].events = fds[1].events = POLLIN;
|
||||
if (ioctl(pv[1], FIONBIO, (char *)&one) < 0)
|
||||
_exit(-1);
|
||||
_exit(1);
|
||||
/* should set s nbio! */
|
||||
do {
|
||||
if (poll(fds, 2, 0) < 0) {
|
||||
close(s);
|
||||
close(pv[0]);
|
||||
_exit(-1);
|
||||
_exit(1);
|
||||
}
|
||||
if (fds[0].revents & POLLIN) {
|
||||
if (read(s, &sig, 1) <= 0)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rtquery.c,v 1.14 2001/03/10 23:52:47 christos Exp $ */
|
||||
/* $NetBSD: rtquery.c,v 1.15 2001/04/06 11:13:46 wiz Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
@ -63,7 +63,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993\n"
|
||||
"The Regents of the University of California."
|
||||
" All rights reserved.\n");
|
||||
#ifdef __NetBSD__
|
||||
__RCSID("$NetBSD: rtquery.c,v 1.14 2001/03/10 23:52:47 christos Exp $");
|
||||
__RCSID("$NetBSD: rtquery.c,v 1.15 2001/04/06 11:13:46 wiz Exp $");
|
||||
#elif defined(__FreeBSD__)
|
||||
__RCSID("$FreeBSD$");
|
||||
#else
|
||||
@ -409,7 +409,7 @@ query_loop(char *argv[], int argc)
|
||||
seen = 0;
|
||||
while (0 > out(*argv++)) {
|
||||
if (*argv == 0)
|
||||
exit(-1);
|
||||
exit(1);
|
||||
answered++;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: panic.c,v 1.1 2001/02/09 18:35:36 uch Exp $ */
|
||||
/* $NetBSD: panic.c,v 1.2 2001/04/06 11:13:56 wiz Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 Kazuma Arino.
|
||||
@ -33,7 +33,7 @@
|
||||
void
|
||||
abort()
|
||||
{
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/* dummy! */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: panic.c,v 1.2 2000/10/21 13:51:01 takemura Exp $ */
|
||||
/* $NetBSD: panic.c,v 1.3 2001/04/06 11:13:56 wiz Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 Kazuma Arino.
|
||||
@ -33,7 +33,7 @@
|
||||
void
|
||||
abort()
|
||||
{
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/* dummy! */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: main.c,v 1.5 1994/06/29 06:41:07 cgd Exp $ */
|
||||
/* $NetBSD: main.c,v 1.6 2001/04/06 11:13:56 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* TODO:
|
||||
@ -294,7 +294,7 @@ char *argv[];
|
||||
#endif notdef
|
||||
if(strlen(kerneldirname)<1) {
|
||||
fprintf(OUT, "K option: dir name too short!\n");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
/* add ../name/ */
|
||||
c = (char *) Malloc(strlen(kerneldirname)+6) ;
|
||||
@ -302,7 +302,7 @@ char *argv[];
|
||||
fprintf(OUT, "Cannot allocate %d bytes for kerneldirname\n",
|
||||
strlen(kerneldirname + 6) );
|
||||
fprintf(OUT, "kerneldirname is %s\n", kerneldirname );
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
*c = '.';
|
||||
*(c+1) = '.';
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sets.c,v 1.4 1994/06/29 06:41:16 cgd Exp $ */
|
||||
/* $NetBSD: sets.c,v 1.5 2001/04/06 11:13:56 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* This code is such a kludge that I don't want to put my name on it.
|
||||
@ -180,11 +180,11 @@ struct Object *o;
|
||||
fprintf(OUT, "insert(%s)\n", OBJ_NAME(o) );
|
||||
if(o->obj_right != NULL) {
|
||||
fprintf(OUT, "insert: unclean Object right\n");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
if(o->obj_left != NULL) {
|
||||
fprintf(OUT, "insert: unclean Object left\n");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
fflush(OUT);
|
||||
ENDDEBUG
|
||||
@ -198,7 +198,7 @@ struct Object *o;
|
||||
if(!(val = strcmp(o->obj_name, p->obj_name)) ) {
|
||||
/* equal */
|
||||
fprintf(stderr, "re-inserting %s\n",o->obj_name);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
if(val < 0) {
|
||||
/* left */
|
||||
@ -326,7 +326,7 @@ char *struc;
|
||||
fprintf(stderr,
|
||||
"Internal error at defineitem: trying to redefine obj type 0x%x, adr %s\n",
|
||||
type, adr);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
} else {
|
||||
onew = (struct Object *)Malloc(sizeof (struct Object));
|
||||
bzero(onew, sizeof(struct Object));
|
||||
@ -369,7 +369,7 @@ char *adr;
|
||||
} else {
|
||||
if(oold->obj_kind != OBJ_ITEM) {
|
||||
fprintf(stderr, "Sets cannot be members of sets; %s\n", adr);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
bcopy(oold, onew, sizeof(struct Object));
|
||||
onew->obj_members = onew->obj_left = onew->obj_right = NULL;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: key_debug.c,v 1.14 2000/09/22 16:55:04 itojun Exp $ */
|
||||
/* $NetBSD: key_debug.c,v 1.15 2001/04/06 11:13:56 wiz Exp $ */
|
||||
/* $KAME: key_debug.c,v 1.25 2000/07/24 13:23:12 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -72,7 +72,7 @@ static void kdebug_secreplay __P((struct secreplay *));
|
||||
#endif
|
||||
|
||||
#ifndef _KERNEL
|
||||
#define panic(param) { printf(param); exit(-1); }
|
||||
#define panic(param) { printf(param); exit(1); }
|
||||
#endif
|
||||
|
||||
/* NOTE: host byte order */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: compat.c,v 1.31 2001/01/01 15:47:37 sommerfeld Exp $ */
|
||||
/* $NetBSD: compat.c,v 1.32 2001/04/06 11:13:46 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
|
||||
@ -39,14 +39,14 @@
|
||||
*/
|
||||
|
||||
#ifdef MAKE_BOOTSTRAP
|
||||
static char rcsid[] = "$NetBSD: compat.c,v 1.31 2001/01/01 15:47:37 sommerfeld Exp $";
|
||||
static char rcsid[] = "$NetBSD: compat.c,v 1.32 2001/04/06 11:13:46 wiz Exp $";
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: compat.c,v 1.31 2001/01/01 15:47:37 sommerfeld Exp $");
|
||||
__RCSID("$NetBSD: compat.c,v 1.32 2001/04/06 11:13:46 wiz Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
@ -428,7 +428,7 @@ CompatMake (gnp, pgnp)
|
||||
* to tell him/her "yes".
|
||||
*/
|
||||
if (queryFlag) {
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: get_addrs.c,v 1.6 2000/07/03 02:51:34 matt Exp $ */
|
||||
/* $NetBSD: get_addrs.c,v 1.7 2001/04/06 11:13:46 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)get_addrs.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
__RCSID("$NetBSD: get_addrs.c,v 1.6 2000/07/03 02:51:34 matt Exp $");
|
||||
__RCSID("$NetBSD: get_addrs.c,v 1.7 2001/04/06 11:13:46 wiz Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include "talk.h"
|
||||
@ -61,7 +61,7 @@ get_addrs(my_machine_name, his_machine_name)
|
||||
if (hp == NULL) {
|
||||
fprintf(stderr, "talk: %s: ", my_machine_name);
|
||||
herror((char *)NULL);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
memmove((char *)&my_machine_addr, hp->h_addr, hp->h_length);
|
||||
/*
|
||||
@ -73,7 +73,7 @@ get_addrs(my_machine_name, his_machine_name)
|
||||
if (hp == NULL) {
|
||||
fprintf(stderr, "talk: %s: ", his_machine_name);
|
||||
herror((char *)NULL);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
memmove((char *) &his_machine_addr, hp->h_addr, hp->h_length);
|
||||
} else
|
||||
@ -83,7 +83,7 @@ get_addrs(my_machine_name, his_machine_name)
|
||||
if (sp == 0) {
|
||||
fprintf(stderr, "talk: %s/%s: service is not registered.\n",
|
||||
"ntalk", "udp");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
daemon_port = sp->s_port;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: get_names.c,v 1.8 2000/07/03 02:51:35 matt Exp $ */
|
||||
/* $NetBSD: get_names.c,v 1.9 2001/04/06 11:13:46 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)get_names.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
__RCSID("$NetBSD: get_names.c,v 1.8 2000/07/03 02:51:35 matt Exp $");
|
||||
__RCSID("$NetBSD: get_names.c,v 1.9 2001/04/06 11:13:46 wiz Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include "talk.h"
|
||||
@ -66,18 +66,18 @@ get_names(argc, argv)
|
||||
|
||||
if (argc < 2 ) {
|
||||
printf("Usage: talk user [ttyname]\n");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
if (!isatty(0)) {
|
||||
printf("Standard input must be a tty, not a pipe or a file\n");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
if ((my_name = getlogin()) == NULL) {
|
||||
struct passwd *pw;
|
||||
|
||||
if ((pw = getpwuid(getuid())) == NULL) {
|
||||
printf("You don't exist. Go away.\n");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
my_name = pw->pw_name;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: whois.c,v 1.16 2001/01/27 22:31:52 joda Exp $ */
|
||||
/* $NetBSD: whois.c,v 1.17 2001/04/06 11:13:46 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* RIPE version marten@ripe.net
|
||||
@ -61,7 +61,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: whois.c,v 1.16 2001/01/27 22:31:52 joda Exp $");
|
||||
__RCSID("$NetBSD: whois.c,v 1.17 2001/04/06 11:13:46 wiz Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
#endif /* not RIPE */
|
||||
@ -531,7 +531,7 @@ int main(argc, argv)
|
||||
|
||||
if (gethostname(domainname, sizeof(domainname))) {
|
||||
fprintf(stderr, "error when doing gethostname()");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
passwdentry=getpwuid(getuid());
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: apmd.c,v 1.18 2001/02/19 23:22:42 cgd Exp $ */
|
||||
/* $NetBSD: apmd.c,v 1.19 2001/04/06 11:13:47 wiz Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 2000 The NetBSD Foundation, Inc.
|
||||
@ -557,7 +557,7 @@ do_etc_file(const char *file)
|
||||
case 0:
|
||||
/* We are the child. */
|
||||
execl(file, prog, NULL);
|
||||
_exit(-1);
|
||||
_exit(1);
|
||||
/* NOTREACHED */
|
||||
default:
|
||||
/* We are the parent. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: inetd.c,v 1.73 2001/02/19 23:22:43 cgd Exp $ */
|
||||
/* $NetBSD: inetd.c,v 1.74 2001/04/06 11:13:47 wiz Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -77,7 +77,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1991, 1993, 1994\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)inetd.c 8.4 (Berkeley) 4/13/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: inetd.c,v 1.73 2001/02/19 23:22:43 cgd Exp $");
|
||||
__RCSID("$NetBSD: inetd.c,v 1.74 2001/04/06 11:13:47 wiz Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -1214,7 +1214,7 @@ enter(cp)
|
||||
sep = (struct servtab *)malloc(sizeof (*sep));
|
||||
if (sep == (struct servtab *)0) {
|
||||
syslog(LOG_ERR, "Out of memory.");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
*sep = *cp;
|
||||
sep->se_fd = -1;
|
||||
@ -1293,7 +1293,7 @@ more:
|
||||
syslog(LOG_ERR,
|
||||
"%s: invalid ipsec policy \"%s\"",
|
||||
CONFIG, p);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
} else {
|
||||
if (policy)
|
||||
free(policy);
|
||||
@ -1690,7 +1690,7 @@ sskip(cpp)
|
||||
cp = skip(cpp);
|
||||
if (cp == NULL) {
|
||||
syslog(LOG_ERR, "%s: syntax error", CONFIG);
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
return (cp);
|
||||
}
|
||||
@ -1749,7 +1749,7 @@ newstr(cp)
|
||||
if ((cp = strdup(cp ? cp : "")))
|
||||
return (cp);
|
||||
syslog(LOG_ERR, "strdup: %m");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mapper.c,v 1.5 2000/10/11 20:23:53 is Exp $ */
|
||||
/* $NetBSD: mapper.c,v 1.6 2001/04/06 11:13:47 wiz Exp $ */
|
||||
|
||||
/* Mapper for connections between MRouteD multicast routers.
|
||||
* Written by Pavel Curtis <Pavel@PARC.Xerox.Com>
|
||||
@ -202,7 +202,7 @@ log(severity, syserr, format, va_alist)
|
||||
}
|
||||
|
||||
if (severity <= LOG_ERR)
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
@ -919,7 +919,7 @@ int main(argc, argv)
|
||||
|| connect(udp, (struct sockaddr *) &addr, sizeof(addr)) < 0
|
||||
|| getsockname(udp, (struct sockaddr *) &addr, &addrlen) < 0) {
|
||||
perror("Determining local address");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
close(udp);
|
||||
our_addr = addr.sin_addr.s_addr;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mrinfo.c,v 1.9 2000/10/12 06:03:32 augustss Exp $ */
|
||||
/* $NetBSD: mrinfo.c,v 1.10 2001/04/06 11:13:48 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* This tool requests configuration info from a multicast router
|
||||
@ -67,7 +67,7 @@
|
||||
static char rcsid[] =
|
||||
"@(#) Header: mrinfo.c,v 1.6 93/04/08 15:14:16 van Exp (LBL)";
|
||||
#else
|
||||
__RCSID("$NetBSD: mrinfo.c,v 1.9 2000/10/12 06:03:32 augustss Exp $");
|
||||
__RCSID("$NetBSD: mrinfo.c,v 1.10 2001/04/06 11:13:48 wiz Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -174,7 +174,7 @@ log(severity, syserr, format, va_alist)
|
||||
}
|
||||
|
||||
if (severity <= LOG_ERR)
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -412,7 +412,7 @@ main(argc, argv)
|
||||
|| connect(udp, (struct sockaddr *) & addr, sizeof(addr)) < 0
|
||||
|| getsockname(udp, (struct sockaddr *) & addr, &addrlen) < 0) {
|
||||
perror("Determining local address");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
close(udp);
|
||||
our_addr = addr.sin_addr.s_addr;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: main.c,v 1.13 2000/10/11 20:23:53 is Exp $ */
|
||||
/* $NetBSD: main.c,v 1.14 2001/04/06 11:13:49 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* The mrouted program is covered by the license in the accompanying file
|
||||
@ -33,7 +33,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("@(#) $NetBSD: main.c,v 1.13 2000/10/11 20:23:53 is Exp $");
|
||||
__RCSID("@(#) $NetBSD: main.c,v 1.14 2001/04/06 11:13:49 wiz Exp $");
|
||||
#endif
|
||||
|
||||
#include <err.h>
|
||||
@ -706,7 +706,7 @@ log(severity, syserr, format, va_alist)
|
||||
syslog(severity, "%s", msg);
|
||||
}
|
||||
|
||||
if (severity <= LOG_ERR) exit(-1);
|
||||
if (severity <= LOG_ERR) exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mtrace.c,v 1.16 2000/10/12 06:11:40 augustss Exp $ */
|
||||
/* $NetBSD: mtrace.c,v 1.17 2001/04/06 11:13:49 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* mtrace.c
|
||||
@ -52,7 +52,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mtrace.c,v 1.16 2000/10/12 06:11:40 augustss Exp $");
|
||||
__RCSID("$NetBSD: mtrace.c,v 1.17 2001/04/06 11:13:49 wiz Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -1356,7 +1356,7 @@ Usage: mtrace [-Mlnps] [-w wait] [-m max_hops] [-q nqueries] [-g gateway]\n\
|
||||
(connect(udp, (struct sockaddr *) &addr, sizeof(addr)) < 0) ||
|
||||
getsockname(udp, (struct sockaddr *) &addr, &addrlen) < 0) {
|
||||
perror("Determining local address");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
#ifdef SUNOS5
|
||||
@ -1375,14 +1375,14 @@ Usage: mtrace [-Mlnps] [-w wait] [-m max_hops] [-q nqueries] [-g gateway]\n\
|
||||
error = sysinfo(SI_HOSTNAME, myhostname, sizeof(myhostname));
|
||||
if (error == -1) {
|
||||
perror("Getting my hostname");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
hp = gethostbyname(myhostname);
|
||||
if (hp == NULL || hp->h_addrtype != AF_INET ||
|
||||
hp->h_length != sizeof(addr.sin_addr)) {
|
||||
perror("Finding IP address for my hostname");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
memcpy((char *)&addr.sin_addr.s_addr, hp->h_addr,
|
||||
@ -1745,7 +1745,7 @@ log(severity, syserr, format, va_alist)
|
||||
else
|
||||
fprintf(stderr, ": %s\n", strerror(syserr));
|
||||
}
|
||||
if (severity <= LOG_ERR) exit(-1);
|
||||
if (severity <= LOG_ERR) exit(1);
|
||||
}
|
||||
|
||||
/* dummies */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: debug.c,v 1.9 2000/12/04 07:05:47 itojun Exp $ */
|
||||
/* $NetBSD: debug.c,v 1.10 2001/04/06 11:13:49 wiz Exp $ */
|
||||
/* $KAME: debug.c,v 1.11 2000/12/04 06:33:09 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -417,7 +417,7 @@ log(severity, syserr, format, va_alist)
|
||||
syslog(severity, "%s", msg);
|
||||
}
|
||||
|
||||
if (severity <= LOG_ERR) exit(-1);
|
||||
if (severity <= LOG_ERR) exit(1);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: debug.c,v 1.9 2001/01/16 02:44:43 cgd Exp $ */
|
||||
/* $NetBSD: debug.c,v 1.10 2001/04/06 11:13:49 wiz Exp $ */
|
||||
/* $KAME: debug.c,v 1.44 2000/12/04 06:45:29 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -661,7 +661,7 @@ va_dcl
|
||||
}
|
||||
|
||||
if (severity <= LOG_ERR)
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* TODO: format the output for better readability */
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* $NetBSD: ftpio.c,v 1.28 2000/12/13 03:17:54 hubertf Exp $ */
|
||||
/* $NetBSD: ftpio.c,v 1.29 2001/04/06 11:13:50 wiz Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: ftpio.c,v 1.28 2000/12/13 03:17:54 hubertf Exp $");
|
||||
__RCSID("$NetBSD: ftpio.c,v 1.29 2001/04/06 11:13:50 wiz Exp $");
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -285,7 +285,7 @@ setupCoproc(const char *base)
|
||||
fprintf(stderr, "[1mftp -detv %s[0m\n", base);
|
||||
rc1 = execl("/usr/bin/ftp", "ftp", "-detv", base, NULL);
|
||||
warn("setupCoproc: execl() failed");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
break;
|
||||
default:
|
||||
/* Parent */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: main.c,v 1.37 2000/09/23 22:39:37 christos Exp $ */
|
||||
/* $NetBSD: main.c,v 1.38 2001/04/06 11:13:50 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* main.c - Point-to-Point Protocol main module
|
||||
@ -24,7 +24,7 @@
|
||||
#if 0
|
||||
#define RCSID "Id: main.c,v 1.100 2000/07/06 11:17:02 paulus Exp "
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.37 2000/09/23 22:39:37 christos Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.38 2001/04/06 11:13:50 wiz Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -1516,7 +1516,7 @@ run_program(prog, args, must_exist, done, arg)
|
||||
syslog(LOG_ERR, "Can't execute %s: %m", prog);
|
||||
closelog();
|
||||
}
|
||||
_exit(-1);
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
if (debug)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rip6query.c,v 1.4 2000/12/19 23:55:02 itojun Exp $ */
|
||||
/* $NetBSD: rip6query.c,v 1.5 2001/04/06 11:13:51 wiz Exp $ */
|
||||
/* $KAME: rip6query.c,v 1.9 2000/12/19 23:54:01 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -105,7 +105,7 @@ main(argc, argv)
|
||||
|
||||
if (argc != 1) {
|
||||
usage();
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if ((s = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: route6d.c,v 1.25 2001/03/08 03:24:47 itojun Exp $ */
|
||||
/* $NetBSD: route6d.c,v 1.26 2001/04/06 11:13:51 wiz Exp $ */
|
||||
/* $KAME: route6d.c,v 1.60 2001/03/08 02:15:42 onoe Exp $ */
|
||||
|
||||
/*
|
||||
@ -32,7 +32,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: route6d.c,v 1.25 2001/03/08 03:24:47 itojun Exp $");
|
||||
__RCSID("$NetBSD: route6d.c,v 1.26 2001/04/06 11:13:51 wiz Exp $");
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
@ -1532,7 +1532,7 @@ rtrecv()
|
||||
|
||||
if ((len = read(rtsock, buf, sizeof(buf))) < 0) {
|
||||
perror("read from rtsock");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
if (len < sizeof(*rtm)) {
|
||||
trace(1, "short read from rtsock: %d (should be > %lu)\n",
|
||||
@ -2761,12 +2761,12 @@ getroute(np, gw)
|
||||
if (errno == ESRCH) /* No such route found */
|
||||
return NULL;
|
||||
perror("write to rtsock");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
do {
|
||||
if ((len = read(rtsock, buf, sizeof(buf))) < 0) {
|
||||
perror("read from rtsock");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
rtm = (struct rt_msghdr *)buf;
|
||||
} while (rtm->rtm_seq != myseq || rtm->rtm_pid != pid);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lockd_lock.c,v 1.5 2000/11/21 03:47:41 enami Exp $ */
|
||||
/* $NetBSD: lockd_lock.c,v 1.6 2001/04/06 11:13:51 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Manuel Bouyer.
|
||||
@ -470,7 +470,7 @@ do_lock(fl, block)
|
||||
if(flock(fl->fd, lflags) != 0) {
|
||||
syslog(LOG_NOTICE, "flock failed: %s",
|
||||
strerror(errno));
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
/* lock granted */
|
||||
exit(0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tcpdump.c,v 1.15 2001/03/01 15:13:31 itojun Exp $ */
|
||||
/* $NetBSD: tcpdump.c,v 1.16 2001/04/06 11:13:51 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
|
||||
@ -29,7 +29,7 @@ static const char rcsid[] =
|
||||
#else
|
||||
__COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997\n\
|
||||
The Regents of the University of California. All rights reserved.\n");
|
||||
__RCSID("$NetBSD: tcpdump.c,v 1.15 2001/03/01 15:13:31 itojun Exp $");
|
||||
__RCSID("$NetBSD: tcpdump.c,v 1.16 2001/04/06 11:13:51 wiz Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -477,5 +477,5 @@ usage(void)
|
||||
"\t\t[ -i interface ] [ -r file ] [ -s snaplen ]\n");
|
||||
(void)fprintf(stderr,
|
||||
"\t\t[ -T type ] [ -w file ] [ expression ]\n");
|
||||
exit(-1);
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user