Christian Grothoff преди 13 години
родител
ревизия
be822f1e93
променени са 3 файла, в които са добавени 11 реда и са изтрити 4 реда
  1. 3 1
      src/daemon/connection.c
  2. 2 2
      src/daemon/daemon.c
  3. 6 1
      src/daemon/internal.h

+ 3 - 1
src/daemon/connection.c

@@ -1,6 +1,6 @@
 /*
     This file is part of libmicrohttpd
-     (C) 2007, 2008, 2009, 2010 Daniel Pittman and Christian Grothoff
+     (C) 2007, 2008, 2009, 2010, 2011, 2012 Daniel Pittman and Christian Grothoff
 
      This library is free software; you can redistribute it and/or
      modify it under the terms of the GNU Lesser General Public
@@ -1661,6 +1661,7 @@ process_header_line (struct MHD_Connection *connection, char *line)
   return MHD_YES;
 }
 
+
 /**
  * Process a header value that spans multiple lines.
  * The previous line(s) are in connection->last.
@@ -1726,6 +1727,7 @@ process_broken_line (struct MHD_Connection *connection,
   return MHD_YES;
 }
 
+
 /**
  * Parse the various headers; figure out the size
  * of the upload and make sure the headers follow

+ 2 - 2
src/daemon/daemon.c

@@ -1,6 +1,6 @@
 /*
   This file is part of libmicrohttpd
-  (C) 2007, 2008, 2009, 2010 Daniel Pittman and Christian Grothoff
+  (C) 2007, 2008, 2009, 2010, 2011, 2012 Daniel Pittman and Christian Grothoff
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -49,7 +49,7 @@
  * Default connection limit.
  */
 #ifndef WINDOWS
-#define MHD_MAX_CONNECTIONS_DEFAULT FD_SETSIZE -4
+#define MHD_MAX_CONNECTIONS_DEFAULT FD_SETSIZE - 4
 #else
 #define MHD_MAX_CONNECTIONS_DEFAULT FD_SETSIZE
 #endif

+ 6 - 1
src/daemon/internal.h

@@ -1,6 +1,6 @@
 /*
   This file is part of libmicrohttpd
-  (C) 2007, 2008, 2009, 2010 Daniel Pittman and Christian Grothoff
+  (C) 2007, 2008, 2009, 2010, 2011, 2012 Daniel Pittman and Christian Grothoff
   
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -181,6 +181,7 @@ struct MHD_HTTP_Header
 
 };
 
+
 /**
  * Representation of a response.
  */
@@ -263,6 +264,7 @@ struct MHD_Response
 
 };
 
+
 /**
  * States in a state machine for a connection.
  *
@@ -407,6 +409,7 @@ enum MHD_CONNECTION_STATE
  */
 #define DEBUG_STATES MHD_NO
 
+
 #if HAVE_MESSAGES
 #if DEBUG_STATES
 const char *
@@ -756,6 +759,7 @@ typedef size_t (*UnescapeCallback)(void *cls,
 				   struct MHD_Connection *conn,
 				   char *uri);
 
+
 /**
  * State kept for each MHD daemon.
  */
@@ -1058,6 +1062,7 @@ struct MHD_Daemon
   (element)->next = NULL; \
   (element)->prev = NULL; } while (0)
 
+
 /**
  * Equivalent to time(NULL) but tries to use some sort of monotonic
  * clock that isn't affected by someone setting the system real time