summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-08-05 10:41:11 +0000
committerrodri <rgl@antares-labs.eu>2024-08-05 10:41:11 +0000
commit05ae0d42a944f6c7d940a5e58eb90b619dadbfdb (patch)
treef9b7e7ff1c189ded71d965bdc3eccf27ef26e462 /util.c
parentc06379ee3aa51d3adf456c8d126feebd1da9de70 (diff)
downloadlibgraphics-05ae0d42a944f6c7d940a5e58eb90b619dadbfdb.tar.gz
libgraphics-05ae0d42a944f6c7d940a5e58eb90b619dadbfdb.tar.bz2
libgraphics-05ae0d42a944f6c7d940a5e58eb90b619dadbfdb.zip
fix a double-free. add a generic value-swapping macro.
Diffstat (limited to 'util.c')
-rw-r--r--util.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/util.c b/util.c
index 2ddf21c..b536147 100644
--- a/util.c
+++ b/util.c
@@ -32,26 +32,6 @@ fmax(double a, double b)
return a > b? a: b;
}
-void
-swapi(int *a, int *b)
-{
- int t;
-
- t = *a;
- *a = *b;
- *b = t;
-}
-
-void
-swappt(Point *a, Point *b)
-{
- Point t;
-
- t = *a;
- *a = *b;
- *b = t;
-}
-
Point2
modulapt2(Point2 a, Point2 b)
{