patch-handle_options_c 620 B

1234567891011121314151617181920212223
  1. $OpenBSD: patch-handle_options_c,v 1.2 2007/12/27 16:34:19 espie Exp $
  2. --- handle_options.c.orig Tue May 7 17:22:08 1996
  3. +++ handle_options.c Thu Dec 27 16:51:26 2007
  4. @@ -52,6 +52,7 @@
  5. #include "tags.h"
  6. #include "prefs.h"
  7. #include "autoinit.h"
  8. +#include "open.h"
  9. #ifdef VOLUME_CONTROL
  10. #ifdef __hpux
  11. @@ -235,7 +236,9 @@ void handle_options(int argc, char *argv[])
  12. print_usage();
  13. end_all(0);
  14. }
  15. - ask_freq = args[1].scalar * 1000;
  16. + ask_freq = args[1].scalar;
  17. + if (ask_freq < 1000)
  18. + ask_freq *= 1000;
  19. stereo = args[2].scalar;
  20. loop = args[3].scalar;
  21. set_watched_scalar(OVERSAMPLE, args[4].scalar);