diff options
author | jsm <jsm@NetBSD.org> | 2004-02-08 00:32:48 +0000 |
---|---|---|
committer | jsm <jsm@NetBSD.org> | 2004-02-08 00:32:48 +0000 |
commit | 80c0ba03f49e892862ae80118ab5455c8256b0ab (patch) | |
tree | 800abbf3413939944e6c72d77c5ec8577fb1ba9b | |
parent | 1f37325e997440c903f6a13aee82c9040608bf2f (diff) | |
download | bsdgames-darwin-80c0ba03f49e892862ae80118ab5455c8256b0ab.tar.gz bsdgames-darwin-80c0ba03f49e892862ae80118ab5455c8256b0ab.tar.zst bsdgames-darwin-80c0ba03f49e892862ae80118ab5455c8256b0ab.zip |
Use standard C abs function rather than local macro.
-rw-r--r-- | sail/extern.h | 3 | ||||
-rw-r--r-- | sail/misc.c | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sail/extern.h b/sail/extern.h index 06512dac..f2288406 100644 --- a/sail/extern.h +++ b/sail/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.26 2004/01/27 20:27:29 jsm Exp $ */ +/* $NetBSD: extern.h,v 1.27 2004/02/08 00:32:48 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -52,7 +52,6 @@ extern gid_t egid; #define dieroll() ((random()) % 6 + 1) #define sqr(a) ((a) * (a)) -#define abs(a) ((a) > 0 ? (a) : -(a)) #define min(a,b) ((a) < (b) ? (a) : (b)) #define grappled(a) ((a)->file->ngrap) diff --git a/sail/misc.c b/sail/misc.c index 4b33197d..d576b35e 100644 --- a/sail/misc.c +++ b/sail/misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.13 2003/08/07 09:37:43 agc Exp $ */ +/* $NetBSD: misc.c,v 1.14 2004/02/08 00:32:48 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,13 +34,14 @@ #if 0 static char sccsid[] = "@(#)misc.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: misc.c,v 1.13 2003/08/07 09:37:43 agc Exp $"); +__RCSID("$NetBSD: misc.c,v 1.14 2004/02/08 00:32:48 jsm Exp $"); #endif #endif /* not lint */ #include <ctype.h> #include <stdio.h> #include <unistd.h> +#include <stdlib.h> #include <string.h> #include "extern.h" #include "pathnames.h" |