diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-01-05 16:38:09 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-01-05 16:38:09 +0000 |
commit | 687e2d7da5d55784bf0769774be7296254a08eba (patch) | |
tree | db91958b67bfcc339d11d88b43036a76e46c296d /polyp/socket-client.c | |
parent | 70710e14d8f8bbab4f1a42db4993f27cb2ca7bc5 (diff) |
Abstract the gettimeofday call into a utility function to ease porting.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@366 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/socket-client.c')
-rw-r--r-- | polyp/socket-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polyp/socket-client.c b/polyp/socket-client.c index 21563d35..f02b74bd 100644 --- a/polyp/socket-client.c +++ b/polyp/socket-client.c @@ -377,7 +377,7 @@ static void start_timeout(struct pa_socket_client *c) { assert(c); assert(!c->timeout_event); - gettimeofday(&tv, NULL); + pa_gettimeofday(&tv); pa_timeval_add(&tv, CONNECT_TIMEOUT * 1000000); c->timeout_event = c->mainloop->time_new(c->mainloop, &tv, timeout_cb, c); } |