aboutsummaryrefslogtreecommitdiff
path: root/scripts/kconfig/mconf.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2019-01-06 20:12:16 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2019-01-06 20:12:16 +0100
commit4bdc914ff97df0cea8d2c7b42bf7f57d5ebb8dcb (patch)
tree1e856a1649322d890d5a5b1c066dfe5678004148 /scripts/kconfig/mconf.c
parent2d9e09796342ab202e780a6cb613b532c7356aec (diff)
downloadbusybox-w32-4bdc914ff97df0cea8d2c7b42bf7f57d5ebb8dcb.tar.gz
busybox-w32-4bdc914ff97df0cea8d2c7b42bf7f57d5ebb8dcb.tar.bz2
busybox-w32-4bdc914ff97df0cea8d2c7b42bf7f57d5ebb8dcb.zip
build system: fix compiler warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r--scripts/kconfig/mconf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index adba1141b..c3a837a14 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -482,7 +482,8 @@ static int exec_conf(void)
482 482
483 *argptr++ = NULL; 483 *argptr++ = NULL;
484 484
485 pipe(pipefd); 485 if (pipe(pipefd))
486 _exit(EXIT_FAILURE);
486 pid = fork(); 487 pid = fork();
487 if (pid == 0) { 488 if (pid == 0) {
488 sigprocmask(SIG_SETMASK, &osset, NULL); 489 sigprocmask(SIG_SETMASK, &osset, NULL);
@@ -846,9 +847,11 @@ static void conf(struct menu *menu)
846static void show_textbox(const char *title, const char *text, int r, int c) 847static void show_textbox(const char *title, const char *text, int r, int c)
847{ 848{
848 int fd; 849 int fd;
850 int len = strlen(text);
849 851
850 fd = creat(".help.tmp", 0777); 852 fd = creat(".help.tmp", 0777);
851 write(fd, text, strlen(text)); 853 if (write(fd, text, len) != len)
854 exit(1);
852 close(fd); 855 close(fd);
853 show_file(".help.tmp", title, r, c); 856 show_file(".help.tmp", title, r, c);
854 unlink(".help.tmp"); 857 unlink(".help.tmp");