Commit 7cf18a2a authored by Martin Sustrik's avatar Martin Sustrik

minor fixes

parent 5a0674df
......@@ -191,8 +191,8 @@ zmq::socket_base_t *zmq::app_thread_t::create_socket (int type_)
s = new (std::nothrow) downstream_t (this);
break;
default:
// TODO: This should be EINVAL.
zmq_assert (false);
errno = EINVAL;
return NULL;
}
zmq_assert (s);
......
......@@ -29,10 +29,6 @@ namespace zmq
class object_t
{
// Repository of sessions needs to use caller's send_* functions
// when creating new session. TODO: Get rid of this dependency.
friend class socket_base_t;
public:
object_t (class dispatcher_t *dispatcher_, int thread_slot_);
......
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