]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ldattach: tiny coding style changes
authorKarel Zak <kzak@redhat.com>
Wed, 15 Jul 2015 13:49:18 +0000 (15:49 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 15 Jul 2015 13:49:18 +0000 (15:49 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/ldattach.c

index 99db32e86a774cabb9d1a740891960276636c27e..8961739db0259c37e50385a89dd243cb170aeceb 100644 (file)
@@ -215,11 +215,14 @@ static void __attribute__ ((__noreturn__)) usage(int exitcode)
        fputs(USAGE_SEPARATOR, out);
        fputs(USAGE_HELP, out);
        fputs(USAGE_VERSION, out);
+
        fputs(_("\nKnown <ldisc> names:\n"), out);
        print_table(out, ld_discs);
+       fputs(USAGE_SEPARATOR, out);
+
        fputs(_("\nKnown <iflag> names:\n"), out);
        print_table(out, ld_iflags);
-       fputc('\n', out);
+
        fprintf(out, USAGE_MAN_TAIL("ldattach(8)"));
        exit(exitcode);
 }
@@ -369,10 +372,14 @@ int main(int argc, char **argv)
        /* ldisc specific option settings */
        if (ldisc == N_GIGASET_M101) {
                /* device specific defaults for line speed and data format */
-               if (speed == 0) speed = 115200;
-               if (bits == '-') bits = '8';
-               if (parity == '-') parity = 'n';
-               if (stop == '-') stop = '1';
+               if (speed == 0)
+                       speed = 115200;
+               if (bits == '-')
+                       bits = '8';
+               if (parity == '-')
+                       parity = 'n';
+               if (stop == '-')
+                       stop = '1';
        }
 
        /* open device */