aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-10-02 12:32:02 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2017-10-02 12:34:38 +0200
commite84d7a082c20b591a06fdfd38ccdbe458e276631 (patch)
tree7a34fdee80d0eefa6bc7d53f5bc04994e4409ab9
parentc645ef9c14751a607e6eba91fb41fcd06ce62ec1 (diff)
Use braces to make GCC happy
-rw-r--r--src/cnetz/main.c7
-rw-r--r--src/nmt/main.c5
2 files changed, 7 insertions, 5 deletions
diff --git a/src/cnetz/main.c b/src/cnetz/main.c
index c62f9f0..af1eaac 100644
--- a/src/cnetz/main.c
+++ b/src/cnetz/main.c
@@ -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");
diff --git a/src/nmt/main.c b/src/nmt/main.c
index 1302124..d6b5ed0 100644
--- a/src/nmt/main.c
+++ b/src/nmt/main.c
@@ -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");