• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-c誰得cocoaqtpythonrubywindowsphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwitterdombtronvb.nettestarduinodirectxpreviewerゲームエンジン

external/busybox


Commit MetaInfo

Revision047f360ca10cef7495a051200cec14013e4162c4 (tree)
Time2020-04-14 08:07:10
AuthorBartosz Golaszewski <bartekgola@gmai...>
CommiterMauro Rossi

Log Message

top.c: fix compilation warnings

pfd[1] is unused

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>

Change Summary

Incremental Difference

--- a/procps/top.c
+++ b/procps/top.c
@@ -917,17 +917,12 @@ enum {
917917 #if ENABLE_FEATURE_USE_TERMIOS
918918 static unsigned handle_input(unsigned scan_mask, unsigned interval)
919919 {
920- struct pollfd pfd[1];
921-
922920 if (option_mask32 & OPT_EOF) {
923921 /* EOF on stdin ("top </dev/null") */
924922 sleep(interval);
925923 return scan_mask;
926924 }
927925
928- pfd[0].fd = 0;
929- pfd[0].events = POLLIN;
930-
931926 while (1) {
932927 int32_t c;
933928