From e8bd6bcaf2cbe8306cc9a4821e8ea7a54a7e56a2 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Tue, 13 Jan 2009 17:42:47 -0200 Subject: Ansification and compile warning fixes. This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects make distcheck and all gcc 4.3 and sparse warnings. --- transform.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'transform.c') diff --git a/transform.c b/transform.c index be4896c..0f02498 100644 --- a/transform.c +++ b/transform.c @@ -83,13 +83,9 @@ TDrawArc ( #endif void -TFillArc (dpy, d, gc, t, x, y, width, height, angle1, angle2) - Display *dpy; - Drawable d; - GC gc; - Transform *t; - double x, y, width, height; - int angle1, angle2; +TFillArc (Display *dpy, Drawable d, GC gc, Transform *t, + double x, double y, double width, double height, + int angle1, int angle2) { int xx, xy, xw, xh; @@ -109,10 +105,9 @@ TFillArc (dpy, d, gc, t, x, y, width, height, angle1, angle2) } void -SetTransform (t, xx1, xx2, xy1, xy2, tx1, tx2, ty1, ty2) - Transform *t; - int xx1, xx2, xy1, xy2; - double tx1, tx2, ty1, ty2; +SetTransform (Transform *t, + int xx1, int xx2, int xy1, int xy2, + double tx1, double tx2, double ty1, double ty2) { t->mx = ((double) xx2 - xx1) / (tx2 - tx1); t->bx = ((double) xx1) - t->mx * tx1; -- cgit v1.2.3