]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: fix compiler warnings [-Wcast-qual]
authorKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2018 11:08:56 +0000 (13:08 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2018 11:08:56 +0000 (13:08 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/cfdisk.c

index 13c8a62dfbe2802a20838833bc4790797c993762..25f8e1a9e8fa4ab106661340f3629d85ea40ea11 100644 (file)
@@ -1745,7 +1745,7 @@ static ssize_t ui_get_string(const char *prompt,
        clrtoeol();
 
        if (prompt) {
-               mvaddstr(ln, cl, (char *) prompt);
+               mvaddstr(ln, cl, prompt);
                cl += mbs_safe_width(prompt);
        }