top.c: fix compilation warnings
authorBartosz Golaszewski <bartekgola@gmail.com>
Sat, 18 Jan 2014 14:36:28 +0000 (15:36 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 20 Jan 2014 02:26:34 +0000 (03:26 +0100)
pfd[1] is unused

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

index 51f1c1aedf7c21a3073061d69514685400111814..530f45fa18fe6349a76ac4eb6c56e8b7ffe68913 100644 (file)
@@ -917,17 +917,12 @@ enum {
 #if ENABLE_FEATURE_USE_TERMIOS
 static unsigned handle_input(unsigned scan_mask, unsigned interval)
 {
-       struct pollfd pfd[1];
-
        if (option_mask32 & OPT_EOF) {
                /* EOF on stdin ("top </dev/null") */
                sleep(interval);
                return scan_mask;
        }
 
-       pfd[0].fd = 0;
-       pfd[0].events = POLLIN;
-
        while (1) {
                int32_t c;