From 120435aad09adf6d14bb4cf91b1bb3caf3567aa8 Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 6 Apr 2001 11:13:45 +0000 Subject: Negative exit code cleanup: Replace exit(-x) with exit(x). As seen on tech-userlevel. --- backgammon/teachgammon/teach.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backgammon') 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); } -- cgit v1.2.3-56-ge451