diff src/config.c @ 9:07f0e2f43204

*: add the restrict keyword when necessary also fixed some typos in the README
author Paper
date Fri, 16 Dec 2022 21:55:37 -0500
parents be4835547dd0
children 42ac054c0231
line wrap: on
line diff
--- a/src/config.c	Fri Dec 16 20:46:33 2022 -0500
+++ b/src/config.c	Fri Dec 16 21:55:37 2022 -0500
@@ -30,7 +30,7 @@
 extern void update_rich_presence_details(void);
 extern struct config config;
 
-int cfg_load(struct config* config) {
+int cfg_load(struct config* restrict config) {
 	char line[MAX_LINE_LENGTH] = {0},
 	     *path = dirtools_concat_paths(getenv("APPDATA"), "Winamp\\Plugins\\wgsdk\\config.txt");
 	FILE* config_fp = fopen(path, "r");