Explorar o código

Remove unused file_ops.inl and format code

bel2125 %!s(int64=7) %!d(string=hai) anos
pai
achega
f3fe358e62
Modificáronse 3 ficheiros con 3 adicións e 5 borrados
  1. 0 2
      src/civetweb.c
  2. 0 1
      src/file_ops.inl
  3. 3 2
      src/main.c

+ 0 - 2
src/civetweb.c

@@ -603,8 +603,6 @@ static void path_to_unicode(const struct mg_connection *conn,
 
 /* All file operations need to be rewritten to solve #246. */
 
-// #include "file_ops.inl"
-
 struct mg_file;
 
 static const char *

+ 0 - 1
src/file_ops.inl

@@ -1 +0,0 @@
-/* currently not required */

+ 3 - 2
src/main.c

@@ -668,8 +668,9 @@ set_option(char **options, const char *name, const char *value)
 		} else if (!strcmp(options[2 * i], name)) {
 			if (multi_sep) {
 				/* Option already set. Overwrite */
-				char *s = (char *)malloc(strlen(options[2 * i + 1]) + strlen(multi_sep)
-				                 + strlen(value) + 1);
+				char *s =
+				    (char *)malloc(strlen(options[2 * i + 1])
+				                   + strlen(multi_sep) + strlen(value) + 1);
 				if (!s) {
 					die("Out of memory");
 				}