From 287e07ebaa5fbcf9be0ce0cb1981798fc04bc9f1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Sep 2024 13:06:20 -0400 Subject: Make function parameters const wherever possible The early history of this code didn't tend to make parameters const, but the "const density" is high enough now that I often find myself wondering if something is mutable for some reason, or just old and sloppier. So, eliminate this confusion by making (hopefully) all function parameters const if possible. --- test/test_node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_node.c') diff --git a/test/test_node.c b/test/test_node.c index 574c10d3..28db00ea 100644 --- a/test/test_node.c +++ b/test/test_node.c @@ -24,7 +24,7 @@ #endif static void -check_strtod(double dbl, double max_delta) +check_strtod(const double dbl, const double max_delta) { char buf[1024]; snprintf(buf, sizeof(buf), "%f", dbl); -- cgit v1.2.1