$OpenBSD: patch-libGeoIP_GeoIPCity_c,v 1.1 2013/07/08 13:04:37 espie Exp $
--- libGeoIP/GeoIPCity.c.orig	Mon Jul  8 15:00:21 2013
+++ libGeoIP/GeoIPCity.c	Mon Jul  8 15:01:18 2013
@@ -55,6 +55,7 @@ _extract_record(GeoIP * gi, unsigned int seek_record, 
   double          latitude = 0, longitude = 0;
   int             metroarea_combo = 0;
   int             bytes_read = 0;
+  int t;
   if (seek_record == gi->databaseSegments[0])
     return NULL;
 
@@ -97,7 +98,7 @@ _extract_record(GeoIP * gi, unsigned int seek_record, 
 	gi->databaseType == GEOIP_CITYCONFIDENCEDIST_EDITION
 	? ((tmp_fixed_record[4] + (tmp_fixed_record[5] << 8)) & 0x3ff) : 0x3ff;
 
-      int             t = fixed_rec_size - gi->record_length;
+      t = fixed_rec_size - gi->record_length;
       
     record_pointer = dseg + tmp_fixed_record[t] +
 	(tmp_fixed_record[t + 1] << 8) + (tmp_fixed_record[t + 2] << 16) ;
@@ -129,7 +130,7 @@ _extract_record(GeoIP * gi, unsigned int seek_record, 
 	gi->databaseType == GEOIP_CITYCONFIDENCEDIST_EDITION
 	? ((record_buf[4] + (record_buf[5] << 8)) & 0x3ff) : 0x3ff;
 
-      int             t = fixed_rec_size - gi->record_length;
+      t = fixed_rec_size - gi->record_length;
 
         record_pointer = dseg + record_buf[t] +
 	(record_buf[t + 1] << 8) + (record_buf[t + 2] << 16) ;
