mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-24 10:23:31 +08:00
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.
This commit is contained in:
parent
02599650b1
commit
607614ae96
@ -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
|
||||
|
@ -1864,7 +1864,7 @@ visible (cc_t ch)
|
||||
}
|
||||
else
|
||||
{
|
||||
*bpout++ = 'M',
|
||||
*bpout++ = 'M';
|
||||
*bpout++ = '-';
|
||||
if (ch >= 128 + 32)
|
||||
{
|
||||
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user