]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - term-utils/scriptlive.c
cast NULL to char * when using execl
[thirdparty/util-linux.git] / term-utils / scriptlive.c
index ee2573a72b5fb0d2735ddec54cc76daaf407c3b6..ac75588cd5eeeb35349db46f5f02bf566c69ec2b 100644 (file)
@@ -316,14 +316,14 @@ main(int argc, char *argv[])
 
                if (access(shell, X_OK) == 0) {
                        if (command)
-                               execl(shell, shname, "-c", command, NULL);
+                               execl(shell, shname, "-c", command, (char *)NULL);
                        else
-                               execl(shell, shname, "-i", NULL);
+                               execl(shell, shname, "-i", (char *)NULL);
                } else {
                        if (command)
-                               execlp(shname, "-c", command, NULL);
+                               execlp(shname, "-c", command, (char *)NULL);
                        else
-                               execlp(shname, "-i", NULL);
+                               execlp(shname, "-i", (char *)NULL);
                }
                err(EXIT_FAILURE, "failed to execute %s", shell);
                break;