Procházet zdrojové kódy

Fix "cast from 'const struct in_addr *' to 'unsigned int *' drops const qualifier"

Kevin Wojniak před 9 roky
rodič
revize
58e1a4ee9e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -9099,7 +9099,7 @@ get_remote_ip(const struct mg_connection *conn)
 	if (!conn) {
 		return 0;
 	}
-	return ntohl(*(uint32_t *)&conn->client.rsa.sin.sin_addr);
+	return ntohl(*(const uint32_t *)&conn->client.rsa.sin.sin_addr);
 }