hackrf_transfer: fix Windows uint32 conversion build warnings

This commit is contained in:
Dominic Spill
2018-03-26 19:07:42 -06:00
parent 4c2a039a01
commit a9bc8b7ff7

View File

@ -641,12 +641,7 @@ int main(int argc, char** argv) {
break; break;
case 's': case 's':
f_hz = strtod(optarg, &endptr); result = parse_u32(optarg, &sample_rate_hz);
if (optarg == endptr) {
result = HACKRF_ERROR_INVALID_PARAM;
break;
}
sample_rate_hz = f_hz;
sample_rate = true; sample_rate = true;
break; break;
@ -657,12 +652,7 @@ int main(int argc, char** argv) {
break; break;
case 'b': case 'b':
f_hz = strtod(optarg, &endptr); result = parse_u32(optarg, &baseband_filter_bw_hz);
if (optarg == endptr) {
result = HACKRF_ERROR_INVALID_PARAM;
break;
}
baseband_filter_bw_hz = f_hz;
baseband_filter_bw = true; baseband_filter_bw = true;
break; break;