From 607614ae962f0e76ccaf2df132eff3e4864f75cc Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 22 May 2007 07:58:42 +0200 Subject: 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. --- ChangeLog | 7 +++++++ src/stty.c | 7 +++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0a2f55365..b7a504b4d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-05-22 Jim Meyering + + 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 stty: diagnose an invalid hex value in 35-colon commmand-line argument 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); -- cgit v1.2.3-54-g00ecf