ref: 1139f212c5ec622ebd44fffa970ebede56e36960
parent: baaedc4234f91e113c759596e2ea6f7b92dfdb50
author: robs <robs>
date: Thu Sep 25 11:46:55 EDT 2008
allow k suffix on freqs
--- a/src/filter.c
+++ b/src/filter.c
@@ -195,11 +195,11 @@
char *p;
p = argv[0];
if (*p != '-') {
- f->freq1 = strtol(p, &p, 10);
+ f->freq1 = lsx_parse_frequency(p, &p);
}
if (*p == '-') {
f->freq0 = f->freq1;
- f->freq1 = strtol(p+1, &p, 10);
+ f->freq1 = lsx_parse_frequency(p+1, &p);
}
if (*p) f->freq1 = f->freq0 = 0;
}