summaryrefslogtreecommitdiff
path: root/lib/libm
diff options
context:
space:
mode:
authorchopps <chopps@NetBSD.org>1994-02-06 18:48:28 +0000
committerchopps <chopps@NetBSD.org>1994-02-06 18:48:28 +0000
commit6e9b4b15e0718bbff86eab06f84eb218cd3f9dc8 (patch)
treec91658c2361ebb36255b591c679b95ede3fdb26c /lib/libm
parent2595681cf29c94dd9d11cf2eccd2d5b270ed7dc1 (diff)
moved struct out of param lists.
Diffstat (limited to 'lib/libm')
-rw-r--r--lib/libm/ieee/cabs.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libm/ieee/cabs.c b/lib/libm/ieee/cabs.c
index fab38895042..2b2b7d1ae7b 100644
--- a/lib/libm/ieee/cabs.c
+++ b/lib/libm/ieee/cabs.c
@@ -33,7 +33,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)cabs.c 5.6 (Berkeley) 10/9/90";*/
-static char rcsid[] = "$Id: cabs.c,v 1.3 1993/08/14 13:43:23 mycroft Exp $";
+static char rcsid[] = "$Id: cabs.c,v 1.4 1994/02/06 18:48:28 chopps Exp $";
#endif /* not lint */
/* HYPOT(X,Y)
@@ -171,16 +171,20 @@ double x, y;
* cabs(z) = hypot(x,y) .
*/
+struct abs_args {
+ double x, y;
+};
+
double
cabs(z)
-struct { double x, y;} z;
+struct abs_args z;
{
return hypot(z.x,z.y);
}
double
z_abs(z)
-struct { double x,y;} *z;
+struct abs_args *z;
{
return hypot(z->x,z->y);
}