]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
kmod_module: Remove const from path
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Thu, 8 Dec 2011 06:44:03 +0000 (04:44 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 8 Dec 2011 13:37:03 +0000 (11:37 -0200)
It's an ugly hack. This is an internal variable, we know we shouldn't
change it everywhere.

libkmod/libkmod-module.c

index d262d2fa77dab0452efb6f00d1ac7ce58dd204f2..401daaadee4aebeffbadfd997f4a3ea1d33a7bf5 100644 (file)
@@ -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;
 }