]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/test_async_driver: silence clang static analyzer warning
authorKefu Chai <kchai@redhat.com>
Fri, 28 Apr 2017 06:01:50 +0000 (14:01 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 28 Apr 2017 06:17:54 +0000 (14:17 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/msgr/test_async_driver.cc

index 697198a38ded9802be1171f2b6a9d1ca1af0bfda..a93cffa0f4e2978ee26943ffd4a2ba054e29f88a 100644 (file)
@@ -148,6 +148,7 @@ void* echoclient(void *arg)
   sa.sin_port = htons(port);
   char addr[] = "127.0.0.1";
   int r = inet_pton(AF_INET, addr, &sa.sin_addr);
+  assert(r == 1);
 
   int connect_sd = ::socket(AF_INET, SOCK_STREAM, 0);
   if (connect_sd >= 0) {