From 7cf18a2aec8300099e3c3e236ac3cefa3be746d0 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 21 Dec 2009 20:45:52 +0100 Subject: minor fixes --- src/app_thread.cpp | 4 ++-- src/object.hpp | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/app_thread.cpp b/src/app_thread.cpp index 666116f..69e0942 100644 --- a/src/app_thread.cpp +++ b/src/app_thread.cpp @@ -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); diff --git a/src/object.hpp b/src/object.hpp index 496fd49..b8d06b9 100644 --- a/src/object.hpp +++ b/src/object.hpp @@ -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_); -- cgit v1.2.3