The following commit has been merged in the master branch:
commit f530505861321e8d8a9e70cf5fd86278778b58d1
Author: Guillem Jover <[email protected]>
Date:   Sun Jul 11 18:51:32 2010 +0200

    u-a: Remove unneeded const from fileset_add_slave string arguments
    
    The arguments were later on cast to remove the constness, so just fix
    the prototype of the function.

diff --git a/utils/update-alternatives.c b/utils/update-alternatives.c
index 41a2062..5c0c939 100644
--- a/utils/update-alternatives.c
+++ b/utils/update-alternatives.c
@@ -529,7 +529,7 @@ fileset_free(struct fileset *fs)
 
 /* name and file must be allocated with malloc */
 static void
-fileset_add_slave(struct fileset *fs, const char *name, const char *file)
+fileset_add_slave(struct fileset *fs, char *name, char *file)
 {
        struct slave_file *sl, *cur, *prev = NULL;
 
@@ -546,8 +546,8 @@ fileset_add_slave(struct fileset *fs, const char *name, 
const char *file)
        /* Otherwise add new at the end */
        sl = xmalloc(sizeof(*sl));
        sl->next = NULL;
-       sl->name = (char *)name;
-       sl->file = (char *)file;
+       sl->name = name;
+       sl->file = file;
        if (prev)
                prev->next = sl;
        else

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to