Commit 548a211d authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
This diff is collapsed.
This diff is collapsed.
diff --git a/tools/lib/subcmd/pager.c b/tools/lib/subcmd/pager.c
index 5ba754d17952..9997a8805a82 100644
--- a/tools/lib/subcmd/pager.c
+++ b/tools/lib/subcmd/pager.c
@@ -30,10 +30,13 @@ static void pager_preexec(void)
* have real input
*/
fd_set in;
+ fd_set exception;
FD_ZERO(&in);
+ FD_ZERO(&exception);
FD_SET(0, &in);
- select(1, &in, NULL, &in, NULL);
+ FD_SET(0, &exception);
+ select(1, &in, NULL, &exception, NULL);
setenv("LESS", "FRSX", 0);
}
diff --git a/tools/lib/str_error_r.c b/tools/lib/str_error_r.c
index d6d65537b0d9..11c3425f272b 100644
--- a/tools/lib/str_error_r.c
+++ b/tools/lib/str_error_r.c
@@ -21,7 +21,12 @@
char *str_error_r(int errnum, char *buf, size_t buflen)
{
int err = strerror_r(errnum, buf, buflen);
- if (err)
- snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, %p, %zd)=%d", errnum, buf, buflen, err);
+ if (err) {
+ char *err_buf = buf;
+
+ snprintf(err_buf, buflen,
+ "INTERNAL ERROR: strerror_r(%d, %p, %zd)=%d",
+ errnum, buf, buflen, err);
+ }
return buf;
}
This diff is collapsed.
headers
/usr/include/.*
kernel
/boot/.*
modules
/lib/modules/.*
etc
/etc/.*
kernel
/boot/(System\.map|config|vmlinuz).*
dtb
/boot/dtbs/.*
etc
/etc/.*
modules
/lib/modules/.*
kernel
/boot/(System\.map|config|vmlinuz).*
dtb
/boot/dtbs/.*
etc
/etc/.*
modules
/lib/modules/.*
kernel
/boot/(System\.map|config|vmlinux).*
dtb
/boot/dtbs/.*
etc
/etc/.*
modules
/lib/modules/.*
firmware
/lib/firmware/.*
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment