[git commit master] beep: the -d option takes milliseconds not microseconds
Denys Vlasenko
vda.linux at googlemail.com
Sun Mar 14 14:32:49 UTC 2010
commit: http://git.busybox.net/busybox/commit/?id=7cfec4b3e06cc1414079c4cea23239730959bf62
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Natanael Copa <natanael.copa at gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
miscutils/beep.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/miscutils/beep.c b/miscutils/beep.c
index c17cbfd..b0ee7ea 100644
--- a/miscutils/beep.c
+++ b/miscutils/beep.c
@@ -79,11 +79,11 @@ int beep_main(int argc, char **argv)
}
while (rep) {
//bb_info_msg("rep[%d] freq=%d, length=%d, delay=%d", rep, freq, length, delay);
- xioctl(speaker, KIOCSOUND, (void*)(long)tickrate_div_freq);
+ xioctl(speaker, KIOCSOUND, (void*)(uintptr_t)tickrate_div_freq);
usleep(1000 * length);
ioctl(speaker, KIOCSOUND, (void*)0);
if (--rep)
- usleep(delay);
+ usleep(1000 * delay);
}
}
--
1.6.3.3
More information about the busybox-cvs
mailing list