diff options
author | Jim Meyering <jim@meyering.net> | 1996-03-24 17:21:40 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-03-24 17:21:40 +0000 |
commit | 6e45576dd630f34f6a11820fc3bffe2534038f5a (patch) | |
tree | f1f309226f2439a0ddec5b4960c1e52fd6c7e208 /src | |
parent | 2bc35b03488b651d695dcb067b0b1275fc4c69b0 (diff) | |
download | coreutils-6e45576dd630f34f6a11820fc3bffe2534038f5a.tar.xz |
(main): Reformat if-block a little.
Declare index I to be of type size_t to avoid warning from gcc -Wall.
Diffstat (limited to 'src')
-rw-r--r-- | src/stty.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/stty.c b/src/stty.c index 1baecfc17..9af791e61 100644 --- a/src/stty.c +++ b/src/stty.c @@ -920,14 +920,14 @@ main (int argc, char **argv) if (speed_was_set || memcmp (&mode, &new_mode, sizeof (mode)) != 0) #endif { - int i; - error (1, 0, + size_t i; + error (1, 0, _("standard input: unable to perform all requested operations")); - printf (_("new_mode: mode\n")); - for (i=0; i<sizeof(new_mode); i++) - printf ("0x%02x: 0x%02x\n", - *(((unsigned char *) &new_mode) + i), - *(((unsigned char *) &mode) + i)); + printf (_("new_mode: mode\n")); + for (i = 0; i < sizeof (new_mode); i++) + printf ("0x%02x: 0x%02x\n", + *(((unsigned char *) &new_mode) + i), + *(((unsigned char *) &mode) + i)); } } } |