Permalink
Browse files

Don't capture accuracy_radius from the underlying C API

This is in support of the 1.50 relesase of the C API. It was never
very useful, and now it seems they've removed it completely.

We keep the field in the data structure for backwards compatibility,
but it will from now on always be 0.
  • Loading branch information...
1 parent 3914139 commit 91479332ac4131c4d9b4a3b256bca733ad2bffb9 @ozataman committed Mar 15, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 hs-GeoIP.cabal
  2. +1 −1 src/Data/Geolocation/GeoIP.hsc
View
@@ -1,5 +1,5 @@
Name: hs-GeoIP
-Version: 0.2
+Version: 0.3
Synopsis: Haskell bindings to the MaxMind GeoIPCity database via the C library
License: BSD3
License-file: LICENSE
@@ -87,7 +87,7 @@ peekGeoIPRecord p =
<*> fmap tofloat (#{peek GeoIPRecord, longitude} p)
<*> fmap toInt (#{peek GeoIPRecord, area_code} p)
<*> peekBS (#{peek GeoIPRecord, continent_code})
- <*> fmap toInt (#{peek GeoIPRecord, accuracy_radius} p)
+ <*> pure 0
peekBS f = do
!sptr <- f p
case nullPtr == sptr of

0 comments on commit 9147933

Please sign in to comment.