Fix a compile warning on OS X 10.6

This commit is contained in:
Sebastian Hahn 2011-04-07 05:30:49 +02:00
parent de1c36ff60
commit 286d44402e

View File

@ -291,7 +291,7 @@ circuit_expire_building(void)
long ms = tor_lround(msec); \
struct timeval diff; \
diff.tv_sec = ms / 1000; \
diff.tv_usec = (ms % 1000) * 1000; \
diff.tv_usec = (int)((ms % 1000) * 1000); \
timersub(&now, &diff, &target); \
} while (0)