Procházet zdrojové kódy

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

bel2125 před 8 roky
rodič
revize
785d9c6102
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  1. 1 3
      src/civetweb.c

+ 1 - 3
src/civetweb.c

@@ -2418,9 +2418,7 @@ skip_quoted(char **buf,
 	if (*end_word == '\0') {
 	if (*end_word == '\0') {
 		*buf = end_word;
 		*buf = end_word;
 	} else {
 	} 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++) {
 		for (p = end_word; p < end_whitespace; p++) {
 			*p = '\0';
 			*p = '\0';