*: change execl sentinels from NULL to (char*)0
authorRich Felker <dalias@aerifal.cx>
Sun, 30 Jun 2013 11:45:17 +0000 (13:45 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 30 Jun 2013 11:45:17 +0000 (13:45 +0200)
Signed-off-by: Rich Felker <dalias@aerifal.cx>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libarchive/data_extract_to_command.c
archival/tar.c
loginutils/getty.c

index a2ce33b..5b32c2e 100644 (file)
@@ -103,7 +103,7 @@ void FAST_FUNC data_extract_to_command(archive_handle_t *archive_handle)
                                archive_handle->tar__to_command_shell,
                                "-c",
                                archive_handle->tar__to_command,
-                               NULL);
+                               (char *)0);
                        bb_perror_msg_and_die("can't execute '%s'", archive_handle->tar__to_command_shell);
                }
                close(p[0]);
index f46f7bb..c0ceff5 100644 (file)
@@ -567,7 +567,7 @@ static void NOINLINE vfork_compressor(int tar_fd, int gzip)
                xmove_fd(gzipDataPipe.rd, 0);
                xmove_fd(tar_fd, 1);
                /* exec gzip/bzip2 program/applet */
-               BB_EXECLP(zip_exec, zip_exec, "-f", NULL);
+               BB_EXECLP(zip_exec, zip_exec, "-f", (char *)0);
                vfork_exec_errno = errno;
                _exit(EXIT_FAILURE);
        }
index e5d13be..0f060ae 100644 (file)
@@ -695,6 +695,6 @@ int getty_main(int argc UNUSED_PARAM, char **argv)
        /* We use PATH because we trust that root doesn't set "bad" PATH,
         * and getty is not suid-root applet */
        /* With -n, logname == NULL, and login will ask for username instead */
-       BB_EXECLP(G.login, G.login, "--", logname, NULL);
+       BB_EXECLP(G.login, G.login, "--", logname, (char *)0);
        bb_error_msg_and_die("can't execute '%s'", G.login);
 }