Fix su_seconds_t handling
commita0ee09238758b2899b2a8f564f386f10f19ab643
authorPetr Písař <petr.pisar@atlas.cz>
Wed, 31 Dec 2014 11:15:48 +0000 (31 12:15 +0100)
committerPetr Písař <petr.pisar@atlas.cz>
Wed, 31 Dec 2014 19:50:42 +0000 (31 20:50 +0100)
treec8068184ff73ab73967f4368ce9c62f2a8c1c402
parent249d0cda3a7e8d0f45ccfc9fdfd1f6b5c6d2282c
Fix su_seconds_t handling

su_seconds_t type used in struct timeval was handled as a long int type.
This is not true on Mac OS X standard library.

This patch fixes it by relying only on POSIX requirements (a signed integer
large enough to accept values from [-1, 1000000] range).

Thanks to Boris Dušek for reporting this issue.
client/common.c
src/isds.c
test/offline/isds-eventstring2event.c
test/offline/isds-timestring2timeval.c
test/simline/service.c
test/test.h