Преглед изворни кода

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);
 }