浏览代码

Remove excessive casts, if a compiler still raises a warning, it will be turned off for this line.

bel2125 8 年之前
父节点
当前提交
785d9c6102
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/civetweb.c

+ 1 - 3
src/civetweb.c

@@ -2418,9 +2418,7 @@ skip_quoted(char **buf,
 	if (*end_word == '\0') {
 		*buf = end_word;
 	} else {
-		end_whitespace =
-		    end_word + ((long unsigned int)strspn(&end_word[1], whitespace)
-		                + (long unsigned int)1);
+		end_whitespace = end_word + strspn(&end_word[1], whitespace) + 1;
 
 		for (p = end_word; p < end_whitespace; p++) {
 			*p = '\0';