]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
su: clean up const usage
authorKarel Zak <kzak@redhat.com>
Fri, 11 Aug 2017 13:18:31 +0000 (15:18 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Sep 2017 09:48:56 +0000 (11:48 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/su-common.c

index e7035df9ba4d92a46008855ddd71e1f6a33787be..fb24b47db4524ee7e044ed95ae11e77669c8b60e 100644 (file)
@@ -578,7 +578,7 @@ static void run_shell(
                size_t n_additional_args)
 {
        size_t n_args = 1 + su->fast_startup + 2 * ! !command + n_additional_args + 1;
-       char const **args = xcalloc(n_args, sizeof *args);
+       const char **args = xcalloc(n_args, sizeof *args);
        size_t argno = 1;
        int rc;