aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
Diffstat (limited to 'procps')
-rw-r--r--procps/nmeter.c2
-rw-r--r--procps/top.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/procps/nmeter.c b/procps/nmeter.c
index 2310e9844..088d366bf 100644
--- a/procps/nmeter.c
+++ b/procps/nmeter.c
@@ -70,7 +70,7 @@ typedef struct proc_file {
70 smallint last_gen; 70 smallint last_gen;
71} proc_file; 71} proc_file;
72 72
73static const char *const proc_name[] = { 73static const char *const proc_name[] ALIGN_PTR = {
74 "stat", // Must match the order of proc_file's! 74 "stat", // Must match the order of proc_file's!
75 "loadavg", 75 "loadavg",
76 "net/dev", 76 "net/dev",
diff --git a/procps/top.c b/procps/top.c
index 4cd545c69..804d6f258 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -913,7 +913,7 @@ static unsigned handle_input(unsigned scan_mask, duration_t interval)
913 while (1) { 913 while (1) {
914 int32_t c; 914 int32_t c;
915 915
916 c = read_key(STDIN_FILENO, G.kbd_input, interval * 1000); 916 c = safe_read_key(STDIN_FILENO, G.kbd_input, interval * 1000);
917 if (c == -1 && errno != EAGAIN) { 917 if (c == -1 && errno != EAGAIN) {
918 /* error/EOF */ 918 /* error/EOF */
919 option_mask32 |= OPT_EOF; 919 option_mask32 |= OPT_EOF;