diff options
author | Martin Lucina <mato@kotelna.sk> | 2010-08-25 09:50:45 +0200 |
---|---|---|
committer | Martin Lucina <mato@kotelna.sk> | 2010-08-25 09:50:45 +0200 |
commit | b66dd7afd20b82668a3d7756900c91680bd1d91e (patch) | |
tree | aabb3c8bef35591f9bfb64b92aa69c3a1c195ee3 | |
parent | 2b2accb8bf574bfb7d85893696f477d5bc6ca272 (diff) |
zmq_stopwatch_stop: Don't return EFAULT
Function returning unsigned long int cannot return (-1)
-rw-r--r-- | src/zmq.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/zmq.cpp b/src/zmq.cpp index 8d2fd05..342a8a6 100644 --- a/src/zmq.cpp +++ b/src/zmq.cpp @@ -765,10 +765,6 @@ unsigned long zmq_stopwatch_stop (void *watch_) { uint64_t end = now (); uint64_t start = *(uint64_t*) watch_; - if (!watch_) { - errno = EFAULT; - return -1; - } free (watch_); return (unsigned long) (end - start); } |