mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-12-27 05:49:52 +07:00
kmod_module: Remove const from path
It's an ugly hack. This is an internal variable, we know we shouldn't change it everywhere.
This commit is contained in:
parent
1487a64ffa
commit
f1fb6f8525
@ -44,7 +44,7 @@
|
||||
*/
|
||||
struct kmod_module {
|
||||
struct kmod_ctx *ctx;
|
||||
const char *path;
|
||||
char *path;
|
||||
struct kmod_list *dep;
|
||||
int refcount;
|
||||
struct {
|
||||
@ -245,7 +245,7 @@ KMOD_EXPORT struct kmod_module *kmod_module_unref(struct kmod_module *mod)
|
||||
|
||||
kmod_module_unref_list(mod->dep);
|
||||
kmod_unref(mod->ctx);
|
||||
free((char *) mod->path);
|
||||
free(mod->path);
|
||||
free(mod);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user