minor fixes

This commit is contained in:
Martin Sustrik
2009-12-21 20:45:52 +01:00
parent 5a0674dfec
commit 7cf18a2aec
2 changed files with 2 additions and 6 deletions

View File

@@ -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);

View File

@@ -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_);