Browse code

core: typo fix in ip_addr_loopback()

- compiling ser without -DUSE_IPV6 used to fail because of a misplaced
bracket

Andrei Pelinescu-Onciul authored on 23/10/2008 11:22:19
Showing 1 changed files
... ...
@@ -238,10 +238,10 @@ inline static int ip_addr_any(struct ip_addr* ip)
238 238
  * 0 otherwise */
239 239
 inline static int ip_addr_loopback(struct ip_addr* ip)
240 240
 {
241
-	if (ip->af==AF_INET){
241
+	if (ip->af==AF_INET)
242 242
 		return ip->u.addr32[0]==htonl(INADDR_LOOPBACK);
243 243
 #ifdef USE_IPV6
244
-	} else if (ip->af==AF_INET6)
244
+	else if (ip->af==AF_INET6)
245 245
 		return IN6_IS_ADDR_LOOPBACK((struct in6_addr *)&ip->u.addr32);
246 246
 #endif /* USE_IPV6 */
247 247
 	return 0;