about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2016-05-26 01:58:55 -0400
committerFedor Indutny <fedor@indutny.com>2016-05-26 01:58:55 -0400
commita4e614177addfebb6f669e707dc5552c3d3ced1a (patch)
tree68c2018cf2a7f88879ad05585c16bdc40c4ac7b5 /src
parent563174a6894f4b4bdf3f90b28fde84d5dd6bfee8 (diff)
downloaduv_link_t-a4e614177addfebb6f669e707dc5552c3d3ced1a.tar.gz
test: uv_link_observer_t test
Diffstat (limited to 'src')
-rw-r--r--src/common.h1
-rw-r--r--src/uv_link_t.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index 93d101f..8e5f627 100644
--- a/src/common.h
+++ b/src/common.h
@@ -13,6 +13,7 @@
     do {                                                                     \
       if ((VALUE)) break;                                                    \
       fprintf(stderr, "Assertion failure: " #MESSAGE "\n");                  \
+      abort();                                                               \
     } while (0);
 
 #define CHECK_EQ(A, B, MESSAGE) CHECK((A) == (B), MESSAGE)
diff --git a/src/uv_link_t.c b/src/uv_link_t.c
index 548d638..df23dcd 100644
--- a/src/uv_link_t.c
+++ b/src/uv_link_t.c
@@ -67,7 +67,7 @@ int uv_link_unchain(uv_link_t* from, uv_link_t* to) {
   from->saved_alloc_cb = NULL;
   from->saved_read_cb = NULL;
 
-  return from->read_stop(from);
+  return 0;
 }