From f1fb6f8525f12f3a9664527475e4e2cb26d75207 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Thu, 8 Dec 2011 04:44:03 -0200 Subject: [PATCH] kmod_module: Remove const from path It's an ugly hack. This is an internal variable, we know we shouldn't change it everywhere. --- libkmod/libkmod-module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index d262d2f..401daaa 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; }