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/core.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/core.c')
-rw-r--r-- | polyp/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polyp/core.c b/polyp/core.c index e2bebec2..539c6775 100644 --- a/polyp/core.c +++ b/polyp/core.c @@ -144,7 +144,7 @@ void pa_core_check_quit(struct pa_core *c) { if (!c->quit_event && c->exit_idle_time >= 0 && pa_idxset_ncontents(c->clients) == 0) { struct timeval tv; - gettimeofday(&tv, NULL); + pa_gettimeofday(&tv); tv.tv_sec+= c->exit_idle_time; c->quit_event = c->mainloop->time_new(c->mainloop, &tv, quit_callback, c); } else if (c->quit_event && pa_idxset_ncontents(c->clients) > 0) { |