Use standard C abs function rather than local macro.

This commit is contained in:
jsm 2004-02-08 00:32:48 +00:00
parent d035cfe33e
commit 5c6ba47786
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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"