소스 검색

Remove unchecked return warning

Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake 14 년 전
부모
커밋
aa76b79f24
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      test/testcpg2.c

+ 1 - 1
test/testcpg2.c

@@ -84,7 +84,7 @@ int main(int argc, char** argv) {
 	pfd.fd = fd;
 	pfd.events = POLLIN;
 
-	poll (&pfd, 1, 1000);
+	assert(poll (&pfd, 1, 1000) == 1);
 	cpg_dispatch(handle, CS_DISPATCH_ALL);
 	return (0);
 }