diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-08-30 01:22:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-08-30 01:22:41 +0200 |
commit | 34bcba63a2eded49853b29844e65328502a3cb0d (patch) | |
tree | 3c0fbb3ee3554c606397c0919125a6ee17b579c7 /src/pulsecore/module.c | |
parent | 13018d62c10731459b0b4fd3f6852dcebddbccb8 (diff) |
remove a few more gcc warnings
Diffstat (limited to 'src/pulsecore/module.c')
-rw-r--r-- | src/pulsecore/module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/module.c b/src/pulsecore/module.c index 29003af8..9b17cb91 100644 --- a/src/pulsecore/module.c +++ b/src/pulsecore/module.c @@ -59,7 +59,7 @@ static void timeout_callback(pa_mainloop_api *m, pa_time_event*e, const struct t pa_module_unload_unused(c); pa_gettimeofday(&ntv); - pa_timeval_add(&ntv, UNLOAD_POLL_TIME*1000000); + pa_timeval_add(&ntv, UNLOAD_POLL_TIME*PA_USEC_PER_SEC); m->time_restart(e, &ntv); } @@ -124,7 +124,7 @@ pa_module* pa_module_load(pa_core *c, const char *name, const char *argument) { if (m->auto_unload && !c->module_auto_unload_event) { struct timeval ntv; pa_gettimeofday(&ntv); - pa_timeval_add(&ntv, UNLOAD_POLL_TIME*1000000); + pa_timeval_add(&ntv, UNLOAD_POLL_TIME*PA_USEC_PER_SEC); c->module_auto_unload_event = c->mainloop->time_new(c->mainloop, &ntv, timeout_callback, c); } |