fix !O_NONBLOCK where ~O_NONBLOCK was meant 210/head
authorWladimir J. van der Laan <laanwj@gmail.com>
Sat, 27 Apr 2013 12:27:05 +0000 (14:27 +0200)
committersvost <ya.nowa@yandex.ru>
Sat, 18 Apr 2015 08:35:24 +0000 (11:35 +0300)
commitec91a3e9a5169f82c85c4c853e5109dd44ef3486
treea551c7a11938ab9c4e12ea914ddd6b362b6ae3d9
parenta767cdb1f8901b4b3042a6745dc65912b7cc0ebd
fix !O_NONBLOCK where ~O_NONBLOCK was meant

Using ! on a non-zero value will always return 0.

Also remove some duplicate and superfluous code in other places.
src/netbase.cpp