gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r28221 - libmicrohttpd/src/microspdy


From: gnunet
Subject: [GNUnet-SVN] r28221 - libmicrohttpd/src/microspdy
Date: Sun, 21 Jul 2013 01:10:44 +0200

Author: andreyu
Date: 2013-07-21 01:10:44 +0200 (Sun, 21 Jul 2013)
New Revision: 28221

Modified:
   libmicrohttpd/src/microspdy/daemon.c
   libmicrohttpd/src/microspdy/session.c
Log:
microspdy: several "unchecked return value"s fixed

Modified: libmicrohttpd/src/microspdy/daemon.c
===================================================================
--- libmicrohttpd/src/microspdy/daemon.c        2013-07-20 21:33:02 UTC (rev 
28220)
+++ libmicrohttpd/src/microspdy/daemon.c        2013-07-20 23:10:44 UTC (rev 
28221)
@@ -351,7 +351,7 @@
        //for GOTO
        free_and_fail:
        if(daemon->socket_fd > 0)
-               close (daemon->socket_fd);
+               (void)close (daemon->socket_fd);
                
        free(servaddr4);
 #if HAVE_INET6
@@ -374,7 +374,7 @@
        
        shutdown (daemon->socket_fd, SHUT_RDWR);
        spdyf_close_all_sessions (daemon);
-       close (daemon->socket_fd);
+       (void)close (daemon->socket_fd);
        
        if(!(SPDY_DAEMON_OPTION_SOCK_ADDR & daemon->options))
                free(daemon->address);

Modified: libmicrohttpd/src/microspdy/session.c
===================================================================
--- libmicrohttpd/src/microspdy/session.c       2013-07-20 21:33:02 UTC (rev 
28220)
+++ libmicrohttpd/src/microspdy/session.c       2013-07-20 23:10:44 UTC (rev 
28221)
@@ -1366,7 +1366,7 @@
        free_and_fail:
        /* something failed, so shutdown, close and free memory */
        shutdown (new_socket_fd, SHUT_RDWR);
-       close (new_socket_fd);
+       (void)close (new_socket_fd);
        
        if(NULL != session)
        {
@@ -1467,7 +1467,7 @@
        struct SPDYF_Stream *stream;
        struct SPDYF_Response_Queue *response_queue;
        
-       close (session->socket_fd);
+       (void)close (session->socket_fd);
        SPDYF_zlib_deflate_end(&session->zlib_send_stream);
        SPDYF_zlib_inflate_end(&session->zlib_recv_stream);
        




reply via email to

[Prev in Thread] Current Thread [Next in Thread]