was passing an int to something expecting a "struct timeval". I've guessed at a timeout to replace it with..