diff options
author | wiz <wiz@NetBSD.org> | 2001-04-06 11:13:45 +0000 |
---|---|---|
committer | wiz <wiz@NetBSD.org> | 2001-04-06 11:13:45 +0000 |
commit | 120435aad09adf6d14bb4cf91b1bb3caf3567aa8 (patch) | |
tree | d8d3aa2d1a3d638bc2cdbdb1aef9d327d6996422 | |
parent | 773147a0b63f42601976da31aea2bed0f29bef9e (diff) | |
download | bsdgames-darwin-120435aad09adf6d14bb4cf91b1bb3caf3567aa8.tar.gz bsdgames-darwin-120435aad09adf6d14bb4cf91b1bb3caf3567aa8.tar.zst bsdgames-darwin-120435aad09adf6d14bb4cf91b1bb3caf3567aa8.zip |
Negative exit code cleanup: Replace exit(-x) with exit(x).
As seen on tech-userlevel.
-rw-r--r-- | backgammon/teachgammon/teach.c | 6 | ||||
-rw-r--r-- | mille/mille.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/backgammon/teachgammon/teach.c b/backgammon/teachgammon/teach.c index 14e96c1b..44491089 100644 --- a/backgammon/teachgammon/teach.c +++ b/backgammon/teachgammon/teach.c @@ -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); } diff --git a/mille/mille.c b/mille/mille.c index 1c6869f5..09cb28c2 100644 --- a/mille/mille.c +++ b/mille/mille.c @@ -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; |