Commit 18dd082f authored by Max Kellermann's avatar Max Kellermann

db/proxy: use ~0 instead of -1

No undefined behavior.
parent 81b734be
...@@ -477,7 +477,7 @@ ProxyDatabase::Connect() ...@@ -477,7 +477,7 @@ ProxyDatabase::Connect()
(void)keepalive; (void)keepalive;
#endif #endif
idle_received = unsigned(-1); idle_received = ~0u;
is_idle = false; is_idle = false;
SocketMonitor::Open(SocketDescriptor(mpd_async_get_fd(mpd_connection_get_async(connection)))); SocketMonitor::Open(SocketDescriptor(mpd_async_get_fd(mpd_connection_get_async(connection))));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment