diff --git a/modfetch.c b/modfetch.c index d2f3d62..497b3bf 100644 --- a/modfetch.c +++ b/modfetch.c @@ -274,18 +274,18 @@ int main(int argc, char *argv[]) { // https://stackoverflow.com/questions/14134245/iso-c-void-and-function-pointers #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" - semver (*version)(void) = dlsym(handle, "version"); - const char *(*name)(void) = dlsym(handle, "name"); - const char *(*get)(void) = dlsym(handle, "get"); - void (*init)(semver, char**) = dlsym(handle, "init"); + semver (*mod_version)(void) = dlsym(handle, "version"); + const char *(*mod_name)(void) = dlsym(handle, "name"); + const char *(*mod_get)(void) = dlsym(handle, "get"); + void (*mod_init)(semver, char**) = dlsym(handle, "init"); #pragma GCC diagnostic pop - init(API_VERSION, current_module.config); + mod_init(API_VERSION, current_module.config); - (void)name; - (void)version; - // printf("%s: %s\n", name(), svtoa(version())); - printf("%s\n", get()); + (void)mod_name; + (void)mod_version; + // printf("%s: %s\n", mod_name(), svtoa(mod_version())); + printf("%s\n", mod_get()); } return 0;