Revert "hackrf_transfer: fix Windows uint32 conversion build warnings"

This reverts commit a9bc8b7ff7c1a2fd910f99d7accd9f75196c71f0.
This commit is contained in:
Dominic Spill
2018-03-26 19:11:55 -06:00
parent a9bc8b7ff7
commit 3168bb55e3

View File

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