tools/lib/subcmd/pager.c: do not alias select() params
authorSergey Senozhatsky <[email protected]>
Tue, 6 Feb 2018 23:37:52 +0000 (15:37 -0800)
committerLinus Torvalds <[email protected]>
Wed, 7 Feb 2018 02:32:44 +0000 (18:32 -0800)
commitad343a98e74e85aa91d844310e797f96fee6983b
treebffefa2e44d2d3b50fdb9d01074e90eb50d77826
parentdfbc3c6cb747c074aa2ba0a10bbeea588d6dfda6
tools/lib/subcmd/pager.c: do not alias select() params

Use a separate fd set for select()-s exception fds param to fix the
following gcc warning:

  pager.c:36:12: error: passing argument 2 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
    select(1, &in, NULL, &in, NULL);
              ^~~        ~~~

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Sergey Senozhatsky <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
tools/lib/subcmd/pager.c