Subject: exit(-x) cleanup
To: None <tech-userlevel@netbsd.org>
From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
List: tech-userlevel
Date: 04/05/2001 14:11:32
--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Hi!
I grep'ed the source tree[1] for all usages of exit(-x), and tried to
replace them with exit(x), to be in better conformance with
/usr/share/misc/style, and because negative values get mapped to
positive ones anyway.
Any comments before I commit?
Bye,
Thomas
[1] Actually, I skipped dist/ipf (because it has a real lot of them,
and I guess I'll try convincing the maintainer to fix them in his
tree), the whole gnu, and all the config.guess's.
--
Thomas Klausner - wiz@danbala.tuwien.ac.at
The secret of life is honesty and fair dealing. If you can fake that,
you've got it made. -- Groucho Marx
--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="exit-.diff"
Content-Transfer-Encoding: quoted-printable
Index: crypto/dist/kame/racoon/kmpstat.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/crypto/dist/kame/racoon/kmpstat.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 kmpstat.c
--- crypto/dist/kame/racoon/kmpstat.c 2001/04/04 19:33:05 1.1.1.2
+++ crypto/dist/kame/racoon/kmpstat.c 2001/04/05 11:54:53
@@ -233,7 +233,7 @@
exit(0);
=20
bad:
- exit(-1);
+ exit(1);
}
=20
static int
Index: sbin/routed/rtquery/rtquery.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/sbin/routed/rtquery/rtquery.c,v
retrieving revision 1.14
diff -u -r1.14 rtquery.c
--- sbin/routed/rtquery/rtquery.c 2001/03/10 23:52:47 1.14
+++ sbin/routed/rtquery/rtquery.c 2001/04/05 11:54:54
@@ -409,7 +409,7 @@
seen =3D 0;
while (0 > out(*argv++)) {
if (*argv =3D=3D 0)
- exit(-1);
+ exit(1);
answered++;
}
=20
Index: usr.bin/make/compat.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.bin/make/compat.c,v
retrieving revision 1.31
diff -u -r1.31 compat.c
--- usr.bin/make/compat.c 2001/01/01 15:47:37 1.31
+++ usr.bin/make/compat.c 2001/04/05 11:54:54
@@ -428,7 +428,7 @@
* to tell him/her "yes".
*/
if (queryFlag) {
- exit (-1);
+ exit (1);
}
=20
/*
Index: usr.bin/talk/get_addrs.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.bin/talk/get_addrs.c,v
retrieving revision 1.6
diff -u -r1.6 get_addrs.c
--- usr.bin/talk/get_addrs.c 2000/07/03 02:51:34 1.6
+++ usr.bin/talk/get_addrs.c 2001/04/05 11:54:54
@@ -61,7 +61,7 @@
if (hp =3D=3D 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 @@
if (hp =3D=3D 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 @@
if (sp =3D=3D 0) {
fprintf(stderr, "talk: %s/%s: service is not registered.\n",
"ntalk", "udp");
- exit(-1);
+ exit(1);
}
daemon_port =3D sp->s_port;
}
Index: usr.bin/talk/get_names.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.bin/talk/get_names.c,v
retrieving revision 1.8
diff -u -r1.8 get_names.c
--- usr.bin/talk/get_names.c 2000/07/03 02:51:35 1.8
+++ usr.bin/talk/get_names.c 2001/04/05 11:54:54
@@ -66,18 +66,18 @@
=20
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 =3D getlogin()) =3D=3D NULL) {
struct passwd *pw;
=20
if ((pw =3D getpwuid(getuid())) =3D=3D NULL) {
printf("You don't exist. Go away.\n");
- exit(-1);
+ exit(1);
}
my_name =3D pw->pw_name;
}
Index: usr.bin/whois/whois.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.bin/whois/whois.c,v
retrieving revision 1.16
diff -u -r1.16 whois.c
--- usr.bin/whois/whois.c 2001/01/27 22:31:52 1.16
+++ usr.bin/whois/whois.c 2001/04/05 11:54:54
@@ -531,7 +531,7 @@
=20
if (gethostname(domainname, sizeof(domainname))) {
fprintf(stderr, "error when doing gethostname()");
- exit(-1);
+ exit(1);
}
=20
passwdentry=3Dgetpwuid(getuid());
Index: usr.sbin/apmd/apmd.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/apmd/apmd.c,v
retrieving revision 1.18
diff -u -r1.18 apmd.c
--- usr.sbin/apmd/apmd.c 2001/02/19 23:22:42 1.18
+++ usr.sbin/apmd/apmd.c 2001/04/05 11:54:55
@@ -557,7 +557,7 @@
case 0:
/* We are the child. */
execl(file, prog, NULL);
- _exit(-1);
+ _exit(1);
/* NOTREACHED */
default:
/* We are the parent. */
Index: usr.sbin/inetd/inetd.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/inetd/inetd.c,v
retrieving revision 1.73
diff -u -r1.73 inetd.c
--- usr.sbin/inetd/inetd.c 2001/02/19 23:22:43 1.73
+++ usr.sbin/inetd/inetd.c 2001/04/05 11:54:55
@@ -1214,7 +1214,7 @@
sep =3D (struct servtab *)malloc(sizeof (*sep));
if (sep =3D=3D (struct servtab *)0) {
syslog(LOG_ERR, "Out of memory.");
- exit(-1);
+ exit(1);
}
*sep =3D *cp;
sep->se_fd =3D -1;
@@ -1293,7 +1293,7 @@
syslog(LOG_ERR,
"%s: invalid ipsec policy \"%s\"",
CONFIG, p);
- exit(-1);
+ exit(1);
} else {
if (policy)
free(policy);
@@ -1690,7 +1690,7 @@
cp =3D skip(cpp);
if (cp =3D=3D NULL) {
syslog(LOG_ERR, "%s: syntax error", CONFIG);
- exit(-1);
+ exit(1);
}
return (cp);
}
@@ -1749,7 +1749,7 @@
if ((cp =3D strdup(cp ? cp : "")))
return (cp);
syslog(LOG_ERR, "strdup: %m");
- exit(-1);
+ exit(1);
}
=20
void
Index: usr.sbin/map-mbone/mapper.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/map-mbone/mapper.c,v
retrieving revision 1.5
diff -u -r1.5 mapper.c
--- usr.sbin/map-mbone/mapper.c 2000/10/11 20:23:53 1.5
+++ usr.sbin/map-mbone/mapper.c 2001/04/05 11:54:56
@@ -202,7 +202,7 @@
}
=20
if (severity <=3D LOG_ERR)
- exit(-1);
+ exit(1);
}
=20
=20
@@ -919,7 +919,7 @@
|| 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 =3D addr.sin_addr.s_addr;
Index: usr.sbin/mrinfo/mrinfo.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/mrinfo/mrinfo.c,v
retrieving revision 1.9
diff -u -r1.9 mrinfo.c
--- usr.sbin/mrinfo/mrinfo.c 2000/10/12 06:03:32 1.9
+++ usr.sbin/mrinfo/mrinfo.c 2001/04/05 11:54:56
@@ -174,7 +174,7 @@
}
=20
if (severity <=3D LOG_ERR)
- exit(-1);
+ exit(1);
}
=20
/*
@@ -412,7 +412,7 @@
|| 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 =3D addr.sin_addr.s_addr;
Index: usr.sbin/mrouted/main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/mrouted/main.c,v
retrieving revision 1.13
diff -u -r1.13 main.c
--- usr.sbin/mrouted/main.c 2000/10/11 20:23:53 1.13
+++ usr.sbin/mrouted/main.c 2001/04/05 11:54:56
@@ -706,7 +706,7 @@
syslog(severity, "%s", msg);
}
=20
- if (severity <=3D LOG_ERR) exit(-1);
+ if (severity <=3D LOG_ERR) exit(1);
}
}
=20
Index: usr.sbin/mtrace/mtrace.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/mtrace/mtrace.c,v
retrieving revision 1.16
diff -u -r1.16 mtrace.c
--- usr.sbin/mtrace/mtrace.c 2000/10/12 06:11:40 1.16
+++ usr.sbin/mtrace/mtrace.c 2001/04/05 11:54:57
@@ -1356,7 +1356,7 @@
(connect(udp, (struct sockaddr *) &addr, sizeof(addr)) < 0) ||
getsockname(udp, (struct sockaddr *) &addr, &addrlen) < 0) {
perror("Determining local address");
- exit(-1);
+ exit(1);
}
=20
#ifdef SUNOS5
@@ -1375,14 +1375,14 @@
error =3D sysinfo(SI_HOSTNAME, myhostname, sizeof(myhostname));
if (error =3D=3D -1) {
perror("Getting my hostname");
- exit(-1);
+ exit(1);
}
=20
hp =3D gethostbyname(myhostname);
if (hp =3D=3D NULL || hp->h_addrtype !=3D AF_INET ||
hp->h_length !=3D sizeof(addr.sin_addr)) {
perror("Finding IP address for my hostname");
- exit(-1);
+ exit(1);
}
=20
memcpy((char *)&addr.sin_addr.s_addr, hp->h_addr,
@@ -1745,7 +1745,7 @@
else
fprintf(stderr, ": %s\n", strerror(syserr));
}
- if (severity <=3D LOG_ERR) exit(-1);
+ if (severity <=3D LOG_ERR) exit(1);
}
=20
/* dummies */
Index: usr.sbin/pim6dd/debug.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/pim6dd/debug.c,v
retrieving revision 1.9
diff -u -r1.9 debug.c
--- usr.sbin/pim6dd/debug.c 2000/12/04 07:05:47 1.9
+++ usr.sbin/pim6dd/debug.c 2001/04/05 11:54:57
@@ -417,7 +417,7 @@
syslog(severity, "%s", msg);
}
=20
- if (severity <=3D LOG_ERR) exit(-1);
+ if (severity <=3D LOG_ERR) exit(1);
}
=20
void
Index: usr.sbin/pim6sd/debug.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/pim6sd/debug.c,v
retrieving revision 1.9
diff -u -r1.9 debug.c
--- usr.sbin/pim6sd/debug.c 2001/01/16 02:44:43 1.9
+++ usr.sbin/pim6sd/debug.c 2001/04/05 11:54:57
@@ -661,7 +661,7 @@
}
=20
if (severity <=3D LOG_ERR)
- exit(-1);
+ exit(1);
}
=20
/* TODO: format the output for better readability */
Index: usr.sbin/pkg_install/lib/ftpio.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/pkg_install/lib/ftpio.c,v
retrieving revision 1.28
diff -u -r1.28 ftpio.c
--- usr.sbin/pkg_install/lib/ftpio.c 2000/12/13 03:17:54 1.28
+++ usr.sbin/pkg_install/lib/ftpio.c 2001/04/05 11:54:57
@@ -285,7 +285,7 @@
fprintf(stderr, "=1B[1mftp -detv %s=1B[0m\n", base);
rc1 =3D execl("/usr/bin/ftp", "ftp", "-detv", base, NULL);
warn("setupCoproc: execl() failed");
- exit(-1);
+ exit(1);
break;
default:=20
/* Parent */
Index: usr.sbin/pppd/pppd/main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/pppd/pppd/main.c,v
retrieving revision 1.37
diff -u -r1.37 main.c
--- usr.sbin/pppd/pppd/main.c 2000/09/23 22:39:37 1.37
+++ usr.sbin/pppd/pppd/main.c 2001/04/05 11:54:59
@@ -1516,7 +1516,7 @@
syslog(LOG_ERR, "Can't execute %s: %m", prog);
closelog();
}
- _exit(-1);
+ _exit(1);
}
=20
if (debug)
Index: usr.sbin/rip6query/rip6query.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/rip6query/rip6query.c,v
retrieving revision 1.4
diff -u -r1.4 rip6query.c
--- usr.sbin/rip6query/rip6query.c 2000/12/19 23:55:02 1.4
+++ usr.sbin/rip6query/rip6query.c 2001/04/05 11:54:59
@@ -105,7 +105,7 @@
=20
if (argc !=3D 1) {
usage();
- exit(-1);
+ exit(1);
}
=20
if ((s =3D socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
Index: usr.sbin/route6d/route6d.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/route6d/route6d.c,v
retrieving revision 1.25
diff -u -r1.25 route6d.c
--- usr.sbin/route6d/route6d.c 2001/03/08 03:24:47 1.25
+++ usr.sbin/route6d/route6d.c 2001/04/05 11:54:59
@@ -1532,7 +1532,7 @@
=20
if ((len =3D 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 @@
if (errno =3D=3D ESRCH) /* No such route found */
return NULL;
perror("write to rtsock");
- exit(-1);
+ exit(1);
}
do {
if ((len =3D read(rtsock, buf, sizeof(buf))) < 0) {
perror("read from rtsock");
- exit(-1);
+ exit(1);
}
rtm =3D (struct rt_msghdr *)buf;
} while (rtm->rtm_seq !=3D myseq || rtm->rtm_pid !=3D pid);
Index: usr.sbin/rpc.lockd/lockd_lock.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/rpc.lockd/lockd_lock.c,v
retrieving revision 1.5
diff -u -r1.5 lockd_lock.c
--- usr.sbin/rpc.lockd/lockd_lock.c 2000/11/21 03:47:41 1.5
+++ usr.sbin/rpc.lockd/lockd_lock.c 2001/04/05 11:54:59
@@ -470,7 +470,7 @@
if(flock(fl->fd, lflags) !=3D 0) {
syslog(LOG_NOTICE, "flock failed: %s",
strerror(errno));
- exit(-1);
+ exit(1);
}
/* lock granted */=09
exit(0);
Index: usr.sbin/tcpdump/tcpdump.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/usr.sbin/tcpdump/tcpdump.c,v
retrieving revision 1.15
diff -u -r1.15 tcpdump.c
--- usr.sbin/tcpdump/tcpdump.c 2001/03/01 15:13:31 1.15
+++ usr.sbin/tcpdump/tcpdump.c 2001/04/05 11:55:01
@@ -477,5 +477,5 @@
"\t\t[ -i interface ] [ -r file ] [ -s snaplen ]\n");
(void)fprintf(stderr,
"\t\t[ -T type ] [ -w file ] [ expression ]\n");
- exit(-1);
+ exit(1);
}
Index: libexec/rexecd/rexecd.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/libexec/rexecd/rexecd.c,v
retrieving revision 1.7
diff -u -r1.7 rexecd.c
--- libexec/rexecd/rexecd.c 2000/10/10 19:54:38 1.7
+++ libexec/rexecd/rexecd.c 2001/04/05 11:55:01
@@ -219,13 +219,13 @@
fds[1].fd =3D pv[0];
fds[0].events =3D fds[1].events =3D 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) <=3D 0)
Index: games/backgammon/teachgammon/teach.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/games/backgammon/teachgammon/teach.c,v
retrieving revision 1.12
diff -u -r1.12 teach.c
--- games/backgammon/teachgammon/teach.c 2001/02/05 00:23:59 1.12
+++ games/backgammon/teachgammon/teach.c 2001/04/05 11:55:01
@@ -158,5 +158,5 @@
fixtty(&old);
execl(EXEC, "backgammon", "-n", args[0]?args:0, 0);
writel("Help! Backgammon program is missing\007!!\n");
- exit(-1);
+ exit(1);
}
Index: games/mille/mille.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/games/mille/mille.c,v
retrieving revision 1.10
diff -u -r1.10 mille.c
--- games/mille/mille.c 2000/05/08 07:56:04 1.10
+++ games/mille/mille.c 2001/04/05 11:55:01
@@ -78,7 +78,7 @@
break;
default:
printf("usage: milles [ restore_file ]\n");
- exit(-1);
+ exit(1);
/* NOTREACHED */
}
Play =3D PLAYER;
Index: dist/bind/bin/dnskeygen/dnskeygen.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/dist/bind/bin/dnskeygen/dnskeygen.c,v
retrieving revision 1.2
diff -u -r1.2 dnskeygen.c
--- dist/bind/bin/dnskeygen/dnskeygen.c 2001/01/27 07:21:57 1.2
+++ dist/bind/bin/dnskeygen/dnskeygen.c 2001/04/05 11:55:02
@@ -315,7 +315,7 @@
printf("\n");
}
=20
- exit (-3);
+ exit (3);
}
=20
=20
Index: dist/bind/bin/dnsquery/dnsquery.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/dist/bind/bin/dnsquery/dnsquery.c,v
retrieving revision 1.2
diff -u -r1.2 dnsquery.c
--- dist/bind/bin/dnsquery/dnsquery.c 2001/01/27 07:21:57 1.2
+++ dist/bind/bin/dnsquery/dnsquery.c 2001/04/05 11:55:02
@@ -68,7 +68,7 @@
/* if no args, exit */
if (argc =3D=3D 1) {
fprintf(stderr, "Usage: %s [-h] host [-n ns] [-t type] [-c class] [-r r=
etry] [-p period] [-s] [-v] [-d] [-a]\n", argv[0]);
- exit(-1);
+ exit(1);
}
=20
/* handle args */
@@ -84,7 +84,7 @@
case 'h' : if (strlen(optarg) >=3D sizeof(name)) {
fprintf(stderr,
"Domain name too long (%s)\n", optarg);
- exit(-1);
+ exit(1);
} else
strcpy(name, optarg);
break;
@@ -98,7 +98,7 @@
class =3D proto_class;
else {
fprintf(stderr, "Bad class (%s)\n", optarg);
- exit(-1);
+ exit(1);
}
}
break;
@@ -112,7 +112,7 @@
type =3D proto_type;
else {
fprintf(stderr, "Bad type (%s)\n", optarg);
- exit(-1);
+ exit(1);
}
}
break;
@@ -137,7 +137,7 @@
fprintf(stderr,
"res_ninit() failed\n"
);
- exit(-1);
+ exit(1);
}
if (nameservers >=3D MAXNS) break;
(void) inet_aton(optarg,
@@ -148,7 +148,7 @@
fprintf(stderr,
"Bad nameserver (%s)\n",
optarg);
- exit(-1);
+ exit(1);
}
memcpy(&q_nsaddr[nameservers],
q_nsname->h_addr, INADDRSZ);
@@ -160,14 +160,14 @@
=20
default : fprintf(stderr,=20
"\tUsage: %s [-n ns] [-h host] [-t type] [-c class] [-r retry] [-p pe=
riod] [-s] [-v] [-d] [-a]\n", argv[0]);
- exit(-1);
+ exit(1);
}
}
if (optind < argc) {
if (strlen(argv[optind]) >=3D 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 @@
if (!(res.options & RES_INIT))
if (res_ninit(&res) =3D=3D -1) {
fprintf(stderr, "res_ninit() failed\n");
- exit(-1);
+ exit(1);
}
=20
/*=20
@@ -210,13 +210,13 @@
if (n < 0) {
fprintf(stderr, "Query failed (h_errno =3D %d) : %s\n",=20
h_errno, h_errlist[h_errno]);
- exit(-1);
+ exit(1);
}
} else if ((n =3D res_nsearch(&res, name, class, type,
answer, len)) < 0) {
fprintf(stderr, "Query failed (h_errno =3D %d) : %s\n",=20
h_errno, h_errlist[h_errno]);
- exit(-1);
+ exit(1);
}
res_pquery(&res, answer, n, stdout);
exit(0);
Index: dist/bind/lib/dst/bsafe_link.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/dist/bind/lib/dst/bsafe_link.c,v
retrieving revision 1.2
diff -u -r1.2 bsafe_link.c
--- dist/bind/lib/dst/bsafe_link.c 2001/01/27 07:22:02 1.2
+++ dist/bind/lib/dst/bsafe_link.c 2001/04/05 11:55:05
@@ -1050,7 +1050,7 @@
=20
if (digest_obj =3D=3D NULL || *digest_obj =3D=3D NULL) {
printf("NO digest obj\n");
- exit(-33);
+ exit(33);
}
=20
if ((mode & SIG_MODE_INIT) &&
Index: dist/cdk/demos/serial.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/dist/cdk/demos/serial.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 serial.c
--- dist/cdk/demos/serial.c 2001/01/04 19:59:45 1.1.1.1
+++ dist/cdk/demos/serial.c 2001/04/05 11:55:05
@@ -107,7 +107,7 @@
{
/* Create a pop-up dialog box... */
printf ("Error: Open of <%s> failed.\n", port);
- exit (-1);
+ exit (1);
}
=20
termInfo.c_cflag =3D CRTSCTS | CLOCAL;
Index: dist/cdk/demos/syb.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/dist/cdk/demos/syb.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 syb.c
--- dist/cdk/demos/syb.c 2001/01/04 19:59:46 1.1.1.1
+++ dist/cdk/demos/syb.c 2001/04/05 11:55:06
@@ -163,7 +163,7 @@
mesg[0] =3D "<C></U>Fatal Error";
mesg[1] =3D "<C>Could not connect to the Sybase database.";
popupLabel (GPCdkScreen, mesg, 2);
- exit (-1);
+ exit (1);
}
=20
/* Load the history. */
@@ -200,7 +200,7 @@
{
destroyCDKScreen (GPCdkScreen);
endCDK ();
- exit (-1);
+ exit (1);
}
=20
/* Do this forever. */
@@ -574,7 +574,7 @@
mesg[1] =3D "<C>Could not connect to the Sybase database.";
popupLabel (screen, mesg, 2);
refreshCDKScreen (screen);
- exit (-1);
+ exit (1);
}
=20
/*
Index: dist/cdk/demos/vinstall.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/dist/cdk/demos/vinstall.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 vinstall.c
--- dist/cdk/demos/vinstall.c 2001/01/04 19:59:47 1.1.1.1
+++ dist/cdk/demos/vinstall.c 2001/04/05 11:55:06
@@ -84,7 +84,7 @@
if (filename =3D=3D 0)
{
fprintf (stderr, "Usage: %s %s\n", argv[0], FPUsage);
- exit (-1);
+ exit (1);
}
=20
/* Open the file list file and read it in. */
@@ -92,7 +92,7 @@
if (count =3D=3D 0)
{
fprintf (stderr, "%s: Input filename <%s> is empty.\n", argv[0], fil=
ename);
- exit (-1);
+ exit (1);
}
=20
/*
@@ -191,7 +191,7 @@
{
freeChar (fileList[x]);
}
- exit (-1);
+ exit (1);
}
=20
/*
@@ -211,7 +211,7 @@
{
freeChar (fileList[x]);
}
- exit (-2);
+ exit (2);
}
=20
/* Create the histogram. */
Index: dist/cdk/examples/vinstall.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/dist/cdk/examples/vinstall.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 vinstall.c
--- dist/cdk/examples/vinstall.c 2001/01/04 19:59:19 1.1.1.1
+++ dist/cdk/examples/vinstall.c 2001/04/05 11:55:06
@@ -84,7 +84,7 @@
if (filename =3D=3D 0)
{
fprintf (stderr, "Usage: %s %s\n", argv[0], FPUsage);
- exit (-1);
+ exit (1);
}
=20
/* Open the file list file and read it in. */
@@ -92,7 +92,7 @@
if (count =3D=3D 0)
{
fprintf (stderr, "%s: Input filename <%s> is empty.\n", argv[0], fil=
ename);
- exit (-1);
+ exit (1);
}
=20
/*
@@ -191,7 +191,7 @@
{
freeChar (fileList[x]);
}
- exit (-1);
+ exit (1);
}
=20
/*
@@ -211,7 +211,7 @@
{
freeChar (fileList[x]);
}
- exit (-2);
+ exit (2);
}
=20
/* Create the histogram. */
Index: dist/ntp/ntpdc/ntpdc.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/dist/ntp/ntpdc/ntpdc.c,v
retrieving revision 1.3
diff -u -r1.3 ntpdc.c
--- dist/ntp/ntpdc/ntpdc.c 2000/10/10 12:43:42 1.3
+++ dist/ntp/ntpdc/ntpdc.c 2001/04/05 11:55:07
@@ -448,7 +448,7 @@
sockfd =3D socket(AF_INET, SOCK_DGRAM, 0);
if (sockfd =3D=3D INVALID_SOCKET) {
error("socket");
- exit(-1);
+ exit(1);
}
#else
sockfd =3D socket(AF_INET, SOCK_DGRAM, 0);
Index: dist/ntp/ntpq/ntpq.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/dist/ntp/ntpq/ntpq.c,v
retrieving revision 1.3
diff -u -r1.3 ntpq.c
--- dist/ntp/ntpq/ntpq.c 2000/10/10 12:51:20 1.3
+++ dist/ntp/ntpq/ntpq.c 2001/04/05 11:55:08
@@ -629,7 +629,7 @@
sockfd =3D socket(AF_INET, SOCK_DGRAM, 0);
if (sockfd =3D=3D INVALID_SOCKET) {
error("socket");
- exit(-1);
+ exit(1);
}
#else
sockfd =3D socket(AF_INET, SOCK_DGRAM, 0);
Index: dist/ntp/util/tickadj.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/dist/ntp/util/tickadj.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 tickadj.c
--- dist/ntp/util/tickadj.c 2000/03/29 12:39:00 1.1.1.1
+++ dist/ntp/util/tickadj.c 2001/04/05 11:55:08
@@ -113,7 +113,7 @@
if (argc > 2)
{
fprintf(stderr, "Usage: %s [tick_value]\n", argv[0]);
- exit(-1);
+ exit(1);
}
else if (argc =3D=3D 2)
{
@@ -124,7 +124,7 @@
#endif
{
fprintf(stderr, "Silly value for tick: %s\n", argv[1]);
- exit(-1);
+ exit(1);
}
#ifdef ADJ_TIMETICK
txc.modes =3D ADJ_TIMETICK;
Index: distrib/pc532/floppies/inst-common/download.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/distrib/pc532/floppies/inst-common/download.c,v
retrieving revision 1.1
diff -u -r1.1 download.c
--- distrib/pc532/floppies/inst-common/download.c 1995/10/06 21:00:16 1.1
+++ distrib/pc532/floppies/inst-common/download.c 2001/04/05 11:55:08
@@ -132,7 +132,7 @@
char *name;
{
fprintf (stderr, "usage: %s [-r] <file>\n", name);
- exit (-1);
+ exit (1);
}
=20
/* Output a character. If it is a CLT_C or ESC, then quote (preceed)
@@ -187,7 +187,7 @@
=20
if (0 =3D=3D (len =3D 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 @@
len =3D read (fd, buf, BUFSZ);
if (-1 =3D=3D len) {
fprintf (stderr, "read failed\n");
- exit (-1);
+ exit (1);
}
if (len =3D=3D 0) break;
for (p =3D buf; p < buf + len; ++p) {
@@ -471,19 +471,19 @@
if (argc =3D=3D 3) {
if (1 !=3D sscanf (argv[2], "%d", &port_num)) {
fprintf (stderr, "Bad serial port, use 1 or 2\n");
- exit (-1);
+ exit (1);
}
--argc;
}
if (argc !=3D 2) {
fprintf (stderr, "usage: %s <file> [<serial port>]\n", argv[0]);
- exit (-1);
+ exit (1);
}
if (port_num =3D=3D 1) port =3D 0x3f8;
else if (port_num =3D=3D 2) port =3D 0x2f8;
else {
fprintf (stderr, "Bad serial port, use 1 or 2\n");
- exit (-1);
+ exit (1);
}
=20
#else
@@ -519,7 +519,7 @@
=20
if (0 > (fd =3D open (argv[1], OPEN_FLAGS))) {
fprintf (stderr, "can not open \"%s\" for reading\n", argv[1]);
- exit (-1);
+ exit (1);
}
=20
init_port(1);
Index: lib/librmt/rmtlib.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/lib/librmt/rmtlib.c,v
retrieving revision 1.16
diff -u -r1.16 rmtlib.c
--- lib/librmt/rmtlib.c 2001/01/05 05:42:45 1.16
+++ lib/librmt/rmtlib.c 2001/04/05 11:55:09
@@ -223,7 +223,7 @@
rexecserv =3D getservbyname("exec", "tcp");
if (rexecserv =3D=3D NULL) {
fprintf(stderr, "? exec/tcp: service not available.");
- exit(-1);
+ exit(1);
}
if ((user !=3D NULL) && *user =3D=3D '\0')
user =3D NULL;
Index: lib/libskey/skeysubr.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/basesrc/lib/libskey/skeysubr.c,v
retrieving revision 1.19
diff -u -r1.19 skeysubr.c
--- lib/libskey/skeysubr.c 2001/03/11 13:57:45 1.19
+++ lib/libskey/skeysubr.c 2001/04/05 11:55:09
@@ -358,7 +358,7 @@
/* Turn on echo if necesary */
skey_echo(1);
=20
- exit(-1);
+ exit(1);
}
=20
/*
Index: sys/arch/hpcmips/stand/libsa/panic.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/syssrc/sys/arch/hpcmips/stand/libsa/panic.c,v
retrieving revision 1.2
diff -u -r1.2 panic.c
--- sys/arch/hpcmips/stand/libsa/panic.c 2000/10/21 13:51:01 1.2
+++ sys/arch/hpcmips/stand/libsa/panic.c 2001/04/05 11:55:09
@@ -33,7 +33,7 @@
void
abort()
{
- exit (-1);
+ exit (1);
}
=20
/* dummy! */
Index: sys/arch/hpc/stand/libsa/panic.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/syssrc/sys/arch/hpc/stand/libsa/panic.c,v
retrieving revision 1.1
diff -u -r1.1 panic.c
--- sys/arch/hpc/stand/libsa/panic.c 2001/02/09 18:35:36 1.1
+++ sys/arch/hpc/stand/libsa/panic.c 2001/04/05 11:55:09
@@ -33,7 +33,7 @@
void
abort()
{
- exit (-1);
+ exit (1);
}
=20
/* dummy! */
Index: sys/netiso/xebec/main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/syssrc/sys/netiso/xebec/main.c,v
retrieving revision 1.5
diff -u -r1.5 main.c
--- sys/netiso/xebec/main.c 1994/06/29 06:41:07 1.5
+++ sys/netiso/xebec/main.c 2001/04/05 11:55:10
@@ -294,7 +294,7 @@
#endif notdef
if(strlen(kerneldirname)<1) {
fprintf(OUT, "K option: dir name too short!\n");
- exit(-1);
+ exit(1);
}
/* add ../name/ */
c =3D (char *) Malloc(strlen(kerneldirname)+6) ;
@@ -302,7 +302,7 @@
fprintf(OUT, "Cannot allocate %d bytes for kerneldirname\n",
strlen(kerneldirname + 6) );
fprintf(OUT, "kerneldirname is %s\n", kerneldirname );
- exit(-1);
+ exit(1);
}
*c =3D '.';
*(c+1) =3D '.';
Index: sys/netiso/xebec/sets.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/syssrc/sys/netiso/xebec/sets.c,v
retrieving revision 1.4
diff -u -r1.4 sets.c
--- sys/netiso/xebec/sets.c 1994/06/29 06:41:16 1.4
+++ sys/netiso/xebec/sets.c 2001/04/05 11:55:10
@@ -180,11 +180,11 @@
fprintf(OUT, "insert(%s)\n", OBJ_NAME(o) );
if(o->obj_right !=3D NULL) {
fprintf(OUT, "insert: unclean Object right\n");
- exit(-1);
+ exit(1);
}
if(o->obj_left !=3D NULL) {
fprintf(OUT, "insert: unclean Object left\n");
- exit(-1);
+ exit(1);
}
fflush(OUT);
ENDDEBUG
@@ -198,7 +198,7 @@
if(!(val =3D 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 @@
fprintf(stderr,=20
"Internal error at defineitem: trying to redefine obj type 0x%x, adr %s\n=
",
type, adr);
- exit(-1);
+ exit(1);
} else {
onew =3D (struct Object *)Malloc(sizeof (struct Object));
bzero(onew, sizeof(struct Object));
@@ -369,7 +369,7 @@
} else {
if(oold->obj_kind !=3D 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 =3D onew->obj_left =3D onew->obj_right =3D NULL;
Index: sys/netkey/key_debug.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/syssrc/sys/netkey/key_debug.c,v
retrieving revision 1.14
diff -u -r1.14 key_debug.c
--- sys/netkey/key_debug.c 2000/09/22 16:55:04 1.14
+++ sys/netkey/key_debug.c 2001/04/05 11:55:11
@@ -72,7 +72,7 @@
#endif
=20
#ifndef _KERNEL
-#define panic(param) { printf(param); exit(-1); }
+#define panic(param) { printf(param); exit(1); }
#endif
=20
/* NOTE: host byte order */
--lrZ03NoBR/3+SXJZ--