From c4409487fdb2822309b9d8cf79bcd7d3895b8390 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 22 Apr 2020 02:36:36 +0200 Subject: Const correct (most) strings At least those cases that are reported by gcc and/or clang. --- src/winapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/winapi.c') diff --git a/src/winapi.c b/src/winapi.c index 58ca183..eaa6ec4 100644 --- a/src/winapi.c +++ b/src/winapi.c @@ -141,7 +141,7 @@ int GetDiskFreeSpace(int x, unsigned long *a, unsigned long *b, unsigned long *c return 0; } -int CreateDirectory(char *dir, int lpSecurityAttributes) +int CreateDirectory(const char *dir, int lpSecurityAttributes) { fprintf(stderr, "CreateDirectory(%s, %d)\n", dir, lpSecurityAttributes); -- cgit v1.3