summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Lucina <mato@kotelna.sk>2010-08-25 09:50:45 +0200
committerMartin Lucina <mato@kotelna.sk>2010-08-25 09:50:45 +0200
commitb66dd7afd20b82668a3d7756900c91680bd1d91e (patch)
treeaabb3c8bef35591f9bfb64b92aa69c3a1c195ee3 /src
parent2b2accb8bf574bfb7d85893696f477d5bc6ca272 (diff)
zmq_stopwatch_stop: Don't return EFAULT
Function returning unsigned long int cannot return (-1)
Diffstat (limited to 'src')
-rw-r--r--src/zmq.cpp4
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);
}