(const_v*): no sizeof(sizeof())
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7484 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -139,7 +139,7 @@ const_v4 (struct addrinfo *a, void *data, int port) | ||||
|     struct in_addr *addr = (struct in_addr *)data; | ||||
|  | ||||
|     a->ai_family  = PF_INET; | ||||
|     a->ai_addrlen = sizeof(sizeof(*sin)); | ||||
|     a->ai_addrlen = sizeof(*sin); | ||||
|     a->ai_addr    = malloc (sizeof(*sin)); | ||||
|     if (a->ai_addr == NULL) | ||||
| 	return EAI_MEMORY; | ||||
| @@ -159,7 +159,7 @@ const_v6 (struct addrinfo *a, void *data, int port) | ||||
|     struct in6_addr *addr = (struct in6_addr *)data; | ||||
|  | ||||
|     a->ai_family  = PF_INET6; | ||||
|     a->ai_addrlen = sizeof(sizeof(*sin6)); | ||||
|     a->ai_addrlen = sizeof(*sin6); | ||||
|     a->ai_addr    = malloc (sizeof(*sin6)); | ||||
|     if (a->ai_addr == NULL) | ||||
| 	return EAI_MEMORY; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Assar Westerlund
					Assar Westerlund