fix -Wconversion warning at lock.c
lock.c:184:11: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
patch against a5cd0093c5330ae6118cbf2830cf288dd4a68ed0
compile test with gcc 4.6/4.9/5.2 and clang 3.7
Signed-off-by: Andreas Mohr <and@gmx.li>
a
|
b
|
|
178 | 178 | static char * |
179 | 179 | lock_get_info (const char *lockfname) |
180 | 180 | { |
181 | | int cnt; |
| 181 | ssize_t cnt; |
182 | 182 | static char buf[BUF_SIZE]; |
183 | 183 | |
184 | 184 | cnt = readlink (lockfname, buf, BUF_SIZE - 1); |