Use FIONREAD instead of TIOCINQ
authorLennart Poettering <lennart@poettering.net>
Sun, 21 Dec 2008 12:33:32 +0000 (13:33 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 21 Dec 2008 12:33:32 +0000 (13:33 +0100)
commit10cc4ba1ca53b56b58f4f04b4c5d49fa4e2b22dc
tree90cfc4284152ec67f26c07b1f2ea794cead2f356
parent63fc26ed034846a8d2189e5cc2fe890ce3b4c7b3
Use FIONREAD instead of TIOCINQ

On Linux the two ioctls FIONREAD and TIOCINQ share the same number.
However TIOCINQ is used for terminals while FIONREAD is used (among
others) for sockets and pipes. Hence use FIONREAD here since it seems
more appropriate.
src/modules/module-pipe-sink.c