gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r36340 - libmicrohttpd/src/microhttpd


From: gnunet
Subject: [GNUnet-SVN] r36340 - libmicrohttpd/src/microhttpd
Date: Sun, 6 Sep 2015 18:02:05 +0200

Author: Karlson2k
Date: 2015-09-06 18:02:05 +0200 (Sun, 06 Sep 2015)
New Revision: 36340

Modified:
   libmicrohttpd/src/microhttpd/daemon.c
Log:
Fix mixed code/var declaration

Modified: libmicrohttpd/src/microhttpd/daemon.c
===================================================================
--- libmicrohttpd/src/microhttpd/daemon.c       2015-09-06 16:02:03 UTC (rev 
36339)
+++ libmicrohttpd/src/microhttpd/daemon.c       2015-09-06 16:02:05 UTC (rev 
36340)
@@ -1120,6 +1120,7 @@
       /* can use sendfile */
       uint64_t left;
       uint64_t offsetu64;
+      int err;
 #ifndef HAVE_SENDFILE64
       off_t offset;
 #else  /* HAVE_SENDFILE64 */
@@ -1146,7 +1147,7 @@
 #endif
          return ret;
        }
-      const int err = MHD_socket_errno_;
+      err = MHD_socket_errno_;
       if ( (EINTR == err) || (EAGAIN == err) || (EWOULDBLOCK == err) )
        return 0;
       if ( (EINVAL == err) || (EBADF == err) )




reply via email to

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