diff options
author | Andrey Uzunov <andrey.uzunov@gmail.com> | 2013-07-20 23:10:44 +0000 |
---|---|---|
committer | Andrey Uzunov <andrey.uzunov@gmail.com> | 2013-07-20 23:10:44 +0000 |
commit | d618f1d7bc2e9754458e397ba29fd6cbeb4dd387 (patch) | |
tree | 42a32d770a6f3639db8b9f1e795fde8cbc453ec4 | |
parent | f60ba3df15b5bc6db1e22b2d6ca9c0ade93c35a3 (diff) | |
download | libmicrohttpd-d618f1d7bc2e9754458e397ba29fd6cbeb4dd387.tar.gz libmicrohttpd-d618f1d7bc2e9754458e397ba29fd6cbeb4dd387.zip |
microspdy: several "unchecked return value"s fixed
-rw-r--r-- | src/microspdy/daemon.c | 4 | ||||
-rw-r--r-- | src/microspdy/session.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/microspdy/daemon.c b/src/microspdy/daemon.c index 0556c253..a8bea83b 100644 --- a/src/microspdy/daemon.c +++ b/src/microspdy/daemon.c | |||
@@ -351,7 +351,7 @@ SPDYF_start_daemon_va (uint16_t port, | |||
351 | //for GOTO | 351 | //for GOTO |
352 | free_and_fail: | 352 | free_and_fail: |
353 | if(daemon->socket_fd > 0) | 353 | if(daemon->socket_fd > 0) |
354 | close (daemon->socket_fd); | 354 | (void)close (daemon->socket_fd); |
355 | 355 | ||
356 | free(servaddr4); | 356 | free(servaddr4); |
357 | #if HAVE_INET6 | 357 | #if HAVE_INET6 |
@@ -374,7 +374,7 @@ SPDYF_stop_daemon (struct SPDY_Daemon *daemon) | |||
374 | 374 | ||
375 | shutdown (daemon->socket_fd, SHUT_RDWR); | 375 | shutdown (daemon->socket_fd, SHUT_RDWR); |
376 | spdyf_close_all_sessions (daemon); | 376 | spdyf_close_all_sessions (daemon); |
377 | close (daemon->socket_fd); | 377 | (void)close (daemon->socket_fd); |
378 | 378 | ||
379 | if(!(SPDY_DAEMON_OPTION_SOCK_ADDR & daemon->options)) | 379 | if(!(SPDY_DAEMON_OPTION_SOCK_ADDR & daemon->options)) |
380 | free(daemon->address); | 380 | free(daemon->address); |
diff --git a/src/microspdy/session.c b/src/microspdy/session.c index 4a6d8525..856bed85 100644 --- a/src/microspdy/session.c +++ b/src/microspdy/session.c | |||
@@ -1366,7 +1366,7 @@ SPDYF_session_accept(struct SPDY_Daemon *daemon) | |||
1366 | free_and_fail: | 1366 | free_and_fail: |
1367 | /* something failed, so shutdown, close and free memory */ | 1367 | /* something failed, so shutdown, close and free memory */ |
1368 | shutdown (new_socket_fd, SHUT_RDWR); | 1368 | shutdown (new_socket_fd, SHUT_RDWR); |
1369 | close (new_socket_fd); | 1369 | (void)close (new_socket_fd); |
1370 | 1370 | ||
1371 | if(NULL != session) | 1371 | if(NULL != session) |
1372 | { | 1372 | { |
@@ -1467,7 +1467,7 @@ SPDYF_session_destroy(struct SPDY_Session *session) | |||
1467 | struct SPDYF_Stream *stream; | 1467 | struct SPDYF_Stream *stream; |
1468 | struct SPDYF_Response_Queue *response_queue; | 1468 | struct SPDYF_Response_Queue *response_queue; |
1469 | 1469 | ||
1470 | close (session->socket_fd); | 1470 | (void)close (session->socket_fd); |
1471 | SPDYF_zlib_deflate_end(&session->zlib_send_stream); | 1471 | SPDYF_zlib_deflate_end(&session->zlib_send_stream); |
1472 | SPDYF_zlib_inflate_end(&session->zlib_recv_stream); | 1472 | SPDYF_zlib_inflate_end(&session->zlib_recv_stream); |
1473 | 1473 | ||