Signed-off-by: John Johansen <john.johansen@canonical.com>
*
* Returns: length of mangled name
*/
-static int mangle_name(char *name, char *target)
+static int mangle_name(const char *name, char *target)
{
char *t = target;
* @profiles: head of the profiles list contained in the object
*/
struct aa_policy {
- char *name;
- char *hname;
+ const char *name;
+ const char *hname;
struct list_head list;
struct list_head profiles;
};
policy->hname = kmalloc(strlen(prefix) + strlen(name) + 3,
GFP_KERNEL);
if (policy->hname)
- sprintf(policy->hname, "%s//%s", prefix, name);
+ sprintf((char *)policy->hname, "%s//%s", prefix, name);
} else
policy->hname = kstrdup(name, GFP_KERNEL);
if (!policy->hname)