This fixed gcc4 build (overloaded == operator...) though I'm not sure it's what was meant. Please check.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30008 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2009-04-07 20:51:01 +00:00
parent 945f9337ea
commit 9b4cfa9d3b

View File

@ -732,7 +732,7 @@ socket_connected(net_socket* _socket)
net_socket_private* socket = (net_socket_private*)_socket; net_socket_private* socket = (net_socket_private*)_socket;
WeakReference<net_socket_private> parent = socket->parent; WeakReference<net_socket_private> parent = socket->parent;
if (parent == NULL) if (socket->parent == NULL)
return B_BAD_VALUE; return B_BAD_VALUE;
MutexLocker _(parent->lock); MutexLocker _(parent->lock);
@ -758,7 +758,7 @@ socket_aborted(net_socket* _socket)
net_socket_private* socket = (net_socket_private*)_socket; net_socket_private* socket = (net_socket_private*)_socket;
WeakReference<net_socket_private> parent = socket->parent; WeakReference<net_socket_private> parent = socket->parent;
if (parent == NULL) if (socket->parent == NULL)
return B_BAD_VALUE; return B_BAD_VALUE;
MutexLocker _(parent->lock); MutexLocker _(parent->lock);