Use braces to make GCC happy

This commit is contained in:
Andreas Eversberg 2017-10-02 12:32:02 +02:00
parent c645ef9c14
commit e84d7a082c
2 changed files with 7 additions and 5 deletions

View File

@ -175,12 +175,13 @@ void print_help(const char *arg0)
printf(" block all matching phones. Alternatively the phone number may be given\n");
printf(" here, so that the 4 bits get calculated automatically. The optional\n");
printf(" second value can be given, to define a range - in the same way.\n");
if (futln_sperre_start < 0)
if (futln_sperre_start < 0) {
printf(" (default = no value given)\n");
else if (futln_sperre_end < 0)
} else if (futln_sperre_end < 0) {
printf(" (default = %d)\n", futln_sperre_start);
else
} else {
printf(" (default = %d-%d)\n", futln_sperre_start, futln_sperre_end);
}
printf(" -D --demod auto | slope | level\n");
printf(" Adjust demodulation algorithm. Use 'slope' to detect a level change\n");
printf(" by finding the highest slope of a bit transition. It is useful, if\n");

View File

@ -68,10 +68,11 @@ void print_help(const char *arg0)
printf(" Give channel type, use 'list' to get a list. (default = '%s')\n", chan_type_short_name(nmt_system, chan_type[0]));
printf(" -P --ms-power <power level>\n");
printf(" Give power level of the mobile station 0..3. (default = '%d')\n", ms_power);
if (nmt_system == 450)
if (nmt_system == 450) {
printf(" NMT-450: 3 = 15 W / 7 W (handheld), 2 = 1.5 W, 1/0 = 150 mW\n");
else
} else {
printf(" NMT-900: 3/2 = 6 W, 1 = 1.5 W, 0 = 150 mW\n");
}
printf(" -Y --traffic-area <traffic area> | list\n");
printf(" NOTE: MUST MATCH WITH YOUR ROAMING SETTINGS IN THE PHONE!\n");
printf(" Your phone will not connect, if country code is different!\n");