diff options
| author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-22 22:55:11 +0000 |
|---|---|---|
| committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-22 22:55:11 +0000 |
| commit | 992cb48d69edf2d39dd860e116b2c81ef0b57caa (patch) | |
| tree | 1c9eba853c728b5d734506e1c66c269d96fe46ea /coreutils | |
| parent | 109a761214fa3176bf09b23b4b3f2cb7da5a6971 (diff) | |
| download | busybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.tar.gz busybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.tar.bz2 busybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.zip | |
- add platform.h.
- use shorter boilerplate while at it.
git-svn-id: svn://busybox.net/trunk/busybox@13494 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils')
| -rw-r--r-- | coreutils/stty.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c index d62068668..cbd2c22e9 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
| @@ -2,15 +2,8 @@ | |||
| 2 | /* stty -- change and print terminal line settings | 2 | /* stty -- change and print terminal line settings |
| 3 | Copyright (C) 1990-1999 Free Software Foundation, Inc. | 3 | Copyright (C) 1990-1999 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This program is free software; you can redistribute it and/or modify | 5 | Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
| 6 | it under the terms of the GNU General Public License as published by | 6 | */ |
| 7 | the Free Software Foundation; either version 2, or (at your option) | ||
| 8 | any later version. | ||
| 9 | |||
| 10 | You should have received a copy of the GNU General Public License | ||
| 11 | along with this program; if not, write to the Free Software Foundation, | ||
| 12 | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | ||
| 13 | |||
| 14 | /* Usage: stty [-ag] [-F device] [setting...] | 7 | /* Usage: stty [-ag] [-F device] [setting...] |
| 15 | 8 | ||
| 16 | Options: | 9 | Options: |
| @@ -428,7 +421,7 @@ static void set_window_size(int rows, int cols, int fd); | |||
| 428 | 421 | ||
| 429 | static const char *device_name; | 422 | static const char *device_name; |
| 430 | 423 | ||
| 431 | static __attribute__ ((noreturn)) void perror_on_device(const char *fmt) | 424 | static ATTRIBUTE_NORETURN void perror_on_device(const char *fmt) |
| 432 | { | 425 | { |
| 433 | bb_perror_msg_and_die(fmt, device_name); | 426 | bb_perror_msg_and_die(fmt, device_name); |
| 434 | } | 427 | } |
