chiark / gitweb /
Portability fix: Build where sizeof is not compatible with int
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 27 Oct 2014 01:42:28 +0000 (01:42 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 27 Oct 2014 01:54:34 +0000 (01:54 +0000)
commit887c6ac76e2435cdbb89f3e0df423fac75ec373c
tree54c338c30365e69b39dfae5070418a8edcb21ad1
parentcaa976333a50a669e1506124afaeda3e5b14d36e
Portability fix: Build where sizeof is not compatible with int

On Debian amd64, for example:

 util.c: In function 'iaddr_to_string':
 util.c:575:3: error: field precision specifier '.*' expects argument
 of type 'int', but argument 3 has type 'long unsigned int'

Thanks to Jonathan Amery for the report.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
util.c