@@ -177,8 +177,8 @@ instance ControlMessage IPv4PktInfo where
177177
178178instance Storable IPv4PktInfo where
179179#if defined (IP_PKTINFO)
180- sizeOf _ = (# size struct in_pktinfo)
181- alignment _ = alignment (0 :: CInt )
180+ sizeOf ~ _ = (# size struct in_pktinfo)
181+ alignment ~ _ = alignment (0 :: CInt )
182182 poke p (IPv4PktInfo n sa ha) = do
183183 (# poke struct in_pktinfo, ipi_ifindex) p (fromIntegral n :: CInt )
184184 (# poke struct in_pktinfo, ipi_spec_dst) p sa
@@ -189,8 +189,8 @@ instance Storable IPv4PktInfo where
189189 ha <- (# peek struct in_pktinfo, ipi_addr) p
190190 return $ IPv4PktInfo n sa ha
191191#else
192- sizeOf _ = 0
193- alignment _ = 1
192+ sizeOf ~ _ = 0
193+ alignment ~ _ = 1
194194 poke _ _ = error " Unsupported control message type"
195195 peek _ = error " Unsupported control message type"
196196#endif
@@ -208,8 +208,8 @@ instance ControlMessage IPv6PktInfo where
208208
209209instance Storable IPv6PktInfo where
210210#if defined (IPV6_PKTINFO)
211- sizeOf _ = (# size struct in6_pktinfo)
212- alignment _ = alignment (0 :: CInt )
211+ sizeOf ~ _ = (# size struct in6_pktinfo)
212+ alignment ~ _ = alignment (0 :: CInt )
213213 poke p (IPv6PktInfo n ha6) = do
214214 (# poke struct in6_pktinfo, ipi6_ifindex) p (fromIntegral n :: CInt )
215215 (# poke struct in6_pktinfo, ipi6_addr) p (In6Addr ha6)
@@ -218,8 +218,8 @@ instance Storable IPv6PktInfo where
218218 n :: CInt <- (# peek struct in6_pktinfo, ipi6_ifindex) p
219219 return $ IPv6PktInfo (fromIntegral n) ha6
220220#else
221- sizeOf _ = 0
222- alignment _ = 1
221+ sizeOf ~ _ = 0
222+ alignment ~ _ = 1
223223 poke _ _ = error " Unsupported control message type"
224224 peek _ = error " Unsupported control message type"
225225#endif
0 commit comments