diff options
author | dholland <dholland@NetBSD.org> | 2008-01-28 06:20:15 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-01-28 06:20:15 +0000 |
commit | e0675e304b50073e40bf7b5d3bfc9ef7d7358ace (patch) | |
tree | 09f70e72bdc24ade4379fb8af0f23b9be176cc6a | |
parent | 7a0e87ac5574e7cf3a527b5d9c93d97fdee6dee8 (diff) | |
download | bsdgames-darwin-e0675e304b50073e40bf7b5d3bfc9ef7d7358ace.tar.gz bsdgames-darwin-e0675e304b50073e40bf7b5d3bfc9ef7d7358ace.tar.zst bsdgames-darwin-e0675e304b50073e40bf7b5d3bfc9ef7d7358ace.zip |
Make this build with WARNS=4 by not reusing names from <math.h>.
-rw-r--r-- | phantasia/misc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phantasia/misc.c b/phantasia/misc.c index d3f72b9d..cfc8a1b1 100644 --- a/phantasia/misc.c +++ b/phantasia/misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.14 2005/02/15 12:58:21 jsm Exp $ */ +/* $NetBSD: misc.c,v 1.15 2008/01/28 06:20:15 dholland Exp $ */ /* * misc.c Phantasia miscellaneous support routines @@ -954,13 +954,13 @@ error(whichfile) } double -distance(x1, x2, y1, y2) - double x1, x2, y1, y2; +distance(x_1, x_2, y_1, y_2) + double x_1, x_2, y_1, y_2; { double deltax, deltay; - deltax = x1 - x2; - deltay = y1 - y2; + deltax = x_1 - x_2; + deltay = y_1 - y_2; return (sqrt(deltax * deltax + deltay * deltay)); } |