From 5c6ba4778623527b5c6601aa4f7dc65bf01e2b37 Mon Sep 17 00:00:00 2001 From: jsm Date: Sun, 8 Feb 2004 00:32:48 +0000 Subject: [PATCH] Use standard C abs function rather than local macro. --- games/sail/extern.h | 3 +-- games/sail/misc.c | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/games/sail/extern.h b/games/sail/extern.h index 06512dac8fc3..f22884061185 100644 --- a/games/sail/extern.h +++ b/games/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/games/sail/misc.c b/games/sail/misc.c index 4b33197dbeb4..d576b35e6f96 100644 --- a/games/sail/misc.c +++ b/games/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 #include #include +#include #include #include "extern.h" #include "pathnames.h"