From: Gustavo Sverzut Barbieri Date: Thu, 8 Dec 2011 06:44:03 +0000 (-0200) Subject: kmod_module: Remove const from path X-Git-Tag: v1~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1fb6f8525f12f3a9664527475e4e2cb26d75207;p=thirdparty%2Fkmod.git kmod_module: Remove const from path It's an ugly hack. This is an internal variable, we know we shouldn't change it everywhere. --- diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index d262d2fa..401daaad 100644 --- a/libkmod/libkmod-module.c +++ b/libkmod/libkmod-module.c @@ -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; }