aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-06-30 13:45:17 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2013-06-30 13:45:17 +0200
commit16614e9babf6b920587597f35c5b2122ac815e16 (patch)
tree5ef19080e90bd76b69617d7f72a08f42b4624f44
parente9b3fcc3e457642788f7011fe9f7fe9917156fa4 (diff)
downloadbusybox-w32-16614e9babf6b920587597f35c5b2122ac815e16.tar.gz
busybox-w32-16614e9babf6b920587597f35c5b2122ac815e16.tar.bz2
busybox-w32-16614e9babf6b920587597f35c5b2122ac815e16.zip
*: change execl sentinels from NULL to (char*)0
Signed-off-by: Rich Felker <dalias@aerifal.cx> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/libarchive/data_extract_to_command.c2
-rw-r--r--archival/tar.c2
-rw-r--r--loginutils/getty.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/archival/libarchive/data_extract_to_command.c b/archival/libarchive/data_extract_to_command.c
index a2ce33b51..5b32c2ec8 100644
--- a/archival/libarchive/data_extract_to_command.c
+++ b/archival/libarchive/data_extract_to_command.c
@@ -103,7 +103,7 @@ void FAST_FUNC data_extract_to_command(archive_handle_t *archive_handle)
103 archive_handle->tar__to_command_shell, 103 archive_handle->tar__to_command_shell,
104 "-c", 104 "-c",
105 archive_handle->tar__to_command, 105 archive_handle->tar__to_command,
106 NULL); 106 (char *)0);
107 bb_perror_msg_and_die("can't execute '%s'", archive_handle->tar__to_command_shell); 107 bb_perror_msg_and_die("can't execute '%s'", archive_handle->tar__to_command_shell);
108 } 108 }
109 close(p[0]); 109 close(p[0]);
diff --git a/archival/tar.c b/archival/tar.c
index f46f7bb7a..c0ceff589 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -567,7 +567,7 @@ static void NOINLINE vfork_compressor(int tar_fd, int gzip)
567 xmove_fd(gzipDataPipe.rd, 0); 567 xmove_fd(gzipDataPipe.rd, 0);
568 xmove_fd(tar_fd, 1); 568 xmove_fd(tar_fd, 1);
569 /* exec gzip/bzip2 program/applet */ 569 /* exec gzip/bzip2 program/applet */
570 BB_EXECLP(zip_exec, zip_exec, "-f", NULL); 570 BB_EXECLP(zip_exec, zip_exec, "-f", (char *)0);
571 vfork_exec_errno = errno; 571 vfork_exec_errno = errno;
572 _exit(EXIT_FAILURE); 572 _exit(EXIT_FAILURE);
573 } 573 }
diff --git a/loginutils/getty.c b/loginutils/getty.c
index e5d13bed6..0f060ae6c 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -695,6 +695,6 @@ int getty_main(int argc UNUSED_PARAM, char **argv)
695 /* We use PATH because we trust that root doesn't set "bad" PATH, 695 /* We use PATH because we trust that root doesn't set "bad" PATH,
696 * and getty is not suid-root applet */ 696 * and getty is not suid-root applet */
697 /* With -n, logname == NULL, and login will ask for username instead */ 697 /* With -n, logname == NULL, and login will ask for username instead */
698 BB_EXECLP(G.login, G.login, "--", logname, NULL); 698 BB_EXECLP(G.login, G.login, "--", logname, (char *)0);
699 bb_error_msg_and_die("can't execute '%s'", G.login); 699 bb_error_msg_and_die("can't execute '%s'", G.login);
700} 700}