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/protocol-esound.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/protocol-esound.c')
-rw-r--r-- | polyp/protocol-esound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polyp/protocol-esound.c b/polyp/protocol-esound.c index d99b721c..2af3cc81 100644 --- a/polyp/protocol-esound.c +++ b/polyp/protocol-esound.c @@ -1099,7 +1099,7 @@ static void on_connection(struct pa_socket_server*s, struct pa_iochannel *io, vo if (!c->authorized) { struct timeval tv; - gettimeofday(&tv, NULL); + pa_gettimeofday(&tv); tv.tv_sec += AUTH_TIMEOUT; c->auth_timeout_event = p->core->mainloop->time_new(p->core->mainloop, &tv, auth_timeout, c); } else |