]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stty: fix a harmless syntax nit
authorJim Meyering <jim@meyering.net>
Tue, 22 May 2007 05:58:42 +0000 (07:58 +0200)
committerJim Meyering <jim@meyering.net>
Tue, 22 May 2007 05:58:42 +0000 (07:58 +0200)
* src/stty.c (visible): Use ";" as the statement terminator
between two assignments, not ",".
(integer_arg): Join an unnecessarily wrapped line.

ChangeLog
src/stty.c

index 0a2f553654176bdbec89e6e8d2dec99f16caf82e..b7a504b4d9e184de6c29feca91cd944ebedba32c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-05-22  Jim Meyering  <jim@meyering.net>
+
+       stty: fix a harmless syntax nit
+       * src/stty.c (visible): Use ";" as the statement terminator
+       between two assignments, not ",".
+       (integer_arg): Join an unnecessarily wrapped line.
+
 2007-05-20  Jim Meyering  <jim@meyering.net>
 
        stty: diagnose an invalid hex value in 35-colon commmand-line argument
index eb269075d137e1b6075a245c5fc205912c67ab20..9e29f9dad6549f0206f137ca37732c1d4ae384b3 100644 (file)
@@ -1864,8 +1864,8 @@ visible (cc_t ch)
        }
       else
        {
-         *bpout++ = 'M',
-           *bpout++ = '-';
+         *bpout++ = 'M';
+         *bpout++ = '-';
          if (ch >= 128 + 32)
            {
              if (ch < 128 + 127)
@@ -1900,8 +1900,7 @@ static unsigned long int
 integer_arg (const char *s, unsigned long int maxval)
 {
   unsigned long int value;
-  if (xstrtoul (s, NULL, 0, &value, "bB") != LONGINT_OK
-      || maxval < value)
+  if (xstrtoul (s, NULL, 0, &value, "bB") != LONGINT_OK || maxval < value)
     {
       error (0, 0, _("invalid integer argument %s"), quote (s));
       usage (EXIT_FAILURE);