aboutsummaryrefslogtreecommitdiffstats
path: root/src/system.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-05-29 17:12:02 -0400
committerDavid Robillard <d@drobilla.net>2021-05-31 11:37:53 -0400
commit9aa0c922b503f9b1f7f22add0afe19638bba7e9b (patch)
tree73e639bee2fd1cb9d06a1bd5770803ecf6ca5e7e /src/system.c
parent624accde94a105213dc3562606c638d9620e7a72 (diff)
downloadserd-9aa0c922b503f9b1f7f22add0afe19638bba7e9b.tar.gz
serd-9aa0c922b503f9b1f7f22add0afe19638bba7e9b.tar.bz2
serd-9aa0c922b503f9b1f7f22add0afe19638bba7e9b.zip
Make most function parameters const
More const never hurts in general, but in particular this allows the compiler to make better nullability deductions, which reduces the amount of manual nullability casting required.
Diffstat (limited to 'src/system.c')
-rw-r--r--src/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system.c b/src/system.c
index 6bc93ca6..f706902d 100644
--- a/src/system.c
+++ b/src/system.c
@@ -35,7 +35,7 @@
#include <string.h>
FILE*
-serd_fopen(const char* path, const char* mode)
+serd_fopen(const char* const path, const char* const mode)
{
FILE* fd = fopen(path, mode);
if (!fd) {