summaryrefslogtreecommitdiff
path: root/src/stty.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-05-22 07:58:42 +0200
committerJim Meyering <jim@meyering.net>2007-05-22 07:58:42 +0200
commit607614ae962f0e76ccaf2df132eff3e4864f75cc (patch)
tree155e5fcb39f23b4f57f94d3221a9e919462656f0 /src/stty.c
parent02599650b1ce9e53c837c29db5002e07337a20ab (diff)
downloadcoreutils-607614ae962f0e76ccaf2df132eff3e4864f75cc.tar.xz
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.
Diffstat (limited to 'src/stty.c')
-rw-r--r--src/stty.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/stty.c b/src/stty.c
index eb269075d..9e29f9dad 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -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);