aboutsummaryrefslogtreecommitdiff
path: root/coreutils/stty.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-22 22:55:11 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-22 22:55:11 +0000
commit86f5c9906beac527f3d7966f24811b571a589e08 (patch)
tree1c9eba853c728b5d734506e1c66c269d96fe46ea /coreutils/stty.c
parent2edf52643d3eb3d13f26d31f9678cf122f2063bc (diff)
downloadbusybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.tar.gz
busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.tar.bz2
busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.zip
- add platform.h.
- use shorter boilerplate while at it.
Diffstat (limited to 'coreutils/stty.c')
-rw-r--r--coreutils/stty.c13
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
429static const char *device_name; 422static const char *device_name;
430 423
431static __attribute__ ((noreturn)) void perror_on_device(const char *fmt) 424static 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}