diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-10-08 01:29:12 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-10-08 01:29:12 -0700 |
commit | a031634bd64c7f30c4ace5ca06a5a47600b42f47 (patch) | |
tree | 919e13ed1ba2e6443fe952288085576322748405 /src/rmd_rectinsert.c | |
parent | bd53002a2bf51d48992613601719d180fed09975 (diff) |
*: more cosmetic formatting cleanups
Making things a bit more consistent
Diffstat (limited to 'src/rmd_rectinsert.c')
-rw-r--r-- | src/rmd_rectinsert.c | 11 |
1 files changed, 6 insertions, 5 deletions
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) { |