Constify struct sockaddr *sa parameter for check

The values are only being checked, not modified.
This commit is contained in:
Matthew Finkel
2012-08-02 15:29:38 -04:00
parent c9aafa0962
commit a47e4343de
+1 -1
View File
@@ -1090,7 +1090,7 @@ connection_listener_new(const struct sockaddr *listensockaddr,
* nmap does). We want to detect that, and not go on with the connection.
*/
static int
check_sockaddr(struct sockaddr *sa, int len, int level)
check_sockaddr(const struct sockaddr *sa, int len, int level)
{
int ok = 1;