Fix strlen vs sizeof usage in a few spots.
[awesomized/libmemcached] / libmemcached / hosts.c
index 9723f8b628ad8c49b42d3d1d6c4388ce63e8a22d..7034d3ec366dd5288ad9b8783b5ee2ca24a356a3 100644 (file)
@@ -92,9 +92,9 @@ static int continuum_item_cmp(const void *t1, const void *t2)
   /* Why 153? Hmmm... */
   WATCHPOINT_ASSERT(ct1->value != 153);
   if (ct1->value == ct2->value)
-    return 0;
+    return EXIT_SUCCESS;
   else if (ct1->value > ct2->value)
-    return 1;
+    return EXIT_FAILURE;
   else
     return -1;
 }