$OpenBSD: patch-libGeoIP_GeoIP_c,v 1.3 2006/05/25 09:14:27 steven Exp $
--- libGeoIP/GeoIP.c.orig	Sun May 14 19:45:02 2006
+++ libGeoIP/GeoIP.c	Thu May 25 12:55:45 2006
@@ -502,7 +502,7 @@ unsigned long _GeoIP_lookupaddress (cons
 			free(buf);
 			return 0;
 		}
-		addr = *((unsigned long *) phe->h_addr_list[0]);
+		addr = (unsigned long) *((in_addr_t *) phe->h_addr_list[0]);
 	}
 #ifdef HAVE_GETHOSTBYNAME_R
 	free(buf);
