소스 검색

-make clear that close return value is ignored intentionally

Christian Grothoff 12 년 전
부모
커밋
7c78413efa
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      doc/examples/responseheaders.c

+ 2 - 1
doc/examples/responseheaders.c

@@ -37,7 +37,8 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
        (0 != fstat (fd, &sbuf)) )
     {
       /* error accessing file */
-      if (fd != -1) close (fd);
+      if (fd != -1)
+	(void) close (fd);
       const char *errorstr =
         "<html><body>An internal server error has occured!\
                               </body></html>";