浏览代码

Style cleanup

valenok 14 年之前
父节点
当前提交
fae26c1bfd
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      mongoose.c

+ 4 - 5
mongoose.c

@@ -683,7 +683,8 @@ static char *skip_quoted(char **buf, const char *delimiters, const char *whitesp
   return begin_word;
   return begin_word;
 }
 }
 
 
-// Simplified version of skip_quoted without quote char and whitespace == delimiters
+// Simplified version of skip_quoted without quote char
+// and whitespace == delimiters
 static char *skip(char **buf, const char *delimiters) {
 static char *skip(char **buf, const char *delimiters) {
   return skip_quoted(buf, delimiters, delimiters, 0);
   return skip_quoted(buf, delimiters, delimiters, 0);
 }
 }
@@ -2016,7 +2017,7 @@ static int check_password(const char *method, const char *ha1, const char *uri,
   char ha2[32 + 1], expected_response[32 + 1];
   char ha2[32 + 1], expected_response[32 + 1];
 
 
   // Some of the parameters may be NULL
   // Some of the parameters may be NULL
-  if (method == NULL || nonce == NULL || nc == NULL || cnonce == NULL || 
+  if (method == NULL || nonce == NULL || nc == NULL || cnonce == NULL ||
       qop == NULL || response == NULL) {
       qop == NULL || response == NULL) {
     return 0;
     return 0;
   }
   }
@@ -2104,9 +2105,7 @@ static int parse_auth_header(struct mg_connection *conn, char *buf,
       if (s[0] == ',') {
       if (s[0] == ',') {
         s++;
         s++;
       }
       }
-    }
-    else
-    {
+    } else {
       value = skip_quoted(&s, ", ", " ", 0);  // IE uses commas, FF uses spaces
       value = skip_quoted(&s, ", ", " ", 0);  // IE uses commas, FF uses spaces
     }
     }
     if (*name == '\0') {
     if (*name == '\0') {