From a031634bd64c7f30c4ace5ca06a5a47600b42f47 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 8 Oct 2020 01:29:12 -0700 Subject: *: more cosmetic formatting cleanups Making things a bit more consistent --- src/rmd_rectinsert.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/rmd_rectinsert.c') diff --git a/src/rmd_rectinsert.c b/src/rmd_rectinsert.c index 2d2fd8c..537967e 100644 --- a/src/rmd_rectinsert.c +++ b/src/rmd_rectinsert.c @@ -59,7 +59,8 @@ static int rmdCollideRects( const XRectangle *xrect1, const XRectangle *xrect2, XRectangle xrect_return[], - int *nrects) { + int *nrects) +{ if ((xrect1->x>=xrect2->x)&& (xrect1->x+xrect1->width<=xrect2->x+xrect2->width)&& (xrect1->y>=xrect2->y)&& @@ -277,8 +278,8 @@ static int rmdCollideRects( const XRectangle *xrect1, } } -int rmdRectInsert(RectArea **root, const XRectangle *xrect) { - +int rmdRectInsert(RectArea **root, const XRectangle *xrect) +{ int total_insertions = 0; RectArea *temp = NULL, *newnode = (RectArea *)malloc(sizeof(RectArea)); @@ -465,8 +466,8 @@ int rmdRectInsert(RectArea **root, const XRectangle *xrect) { return total_insertions; } -void rmdClearList(RectArea **root) { - +void rmdClearList(RectArea **root) +{ RectArea *temp; temp=*root; if (temp!=NULL) { -- cgit v1.2.1