diff options
author | Denys Vlasenko | 2019-01-06 20:12:16 +0100 |
---|---|---|
committer | Denys Vlasenko | 2019-01-06 20:12:16 +0100 |
commit | 4bdc914ff97df0cea8d2c7b42bf7f57d5ebb8dcb (patch) | |
tree | 1e856a1649322d890d5a5b1c066dfe5678004148 /scripts/kconfig/mconf.c | |
parent | 2d9e09796342ab202e780a6cb613b532c7356aec (diff) | |
download | busybox-4bdc914ff97df0cea8d2c7b42bf7f57d5ebb8dcb.zip busybox-4bdc914ff97df0cea8d2c7b42bf7f57d5ebb8dcb.tar.gz |
build system: fix compiler warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/kconfig/mconf.c')
-rw-r--r-- | scripts/kconfig/mconf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index adba114..c3a837a 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c @@ -482,7 +482,8 @@ static int exec_conf(void) *argptr++ = NULL; - pipe(pipefd); + if (pipe(pipefd)) + _exit(EXIT_FAILURE); pid = fork(); if (pid == 0) { sigprocmask(SIG_SETMASK, &osset, NULL); @@ -846,9 +847,11 @@ static void conf(struct menu *menu) static void show_textbox(const char *title, const char *text, int r, int c) { int fd; + int len = strlen(text); fd = creat(".help.tmp", 0777); - write(fd, text, strlen(text)); + if (write(fd, text, len) != len) + exit(1); close(fd); show_file(".help.tmp", title, r, c); unlink(".help.tmp"); |