aboutsummaryrefslogtreecommitdiff
path: root/miscutils/rx.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-03-15 08:29:22 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-03-15 08:29:22 +0000
commitb16674f3c1a961e0b5d6a57745f5f749d95c641e (patch)
tree4c6d2217f4d8306c59cf1096f8664e1cfd167213 /miscutils/rx.c
parente7135df4a650f9197b633784472f45602524855b (diff)
downloadbusybox-w32-b16674f3c1a961e0b5d6a57745f5f749d95c641e.tar.gz
busybox-w32-b16674f3c1a961e0b5d6a57745f5f749d95c641e.tar.bz2
busybox-w32-b16674f3c1a961e0b5d6a57745f5f749d95c641e.zip
Remove trailing whitespace. Update copyright to include 2004.
git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'miscutils/rx.c')
-rw-r--r--miscutils/rx.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/miscutils/rx.c b/miscutils/rx.c
index 2b16f2e22..8edc8877a 100644
--- a/miscutils/rx.c
+++ b/miscutils/rx.c
@@ -1,14 +1,14 @@
1/*------------------------------------------------------------------------- 1/*-------------------------------------------------------------------------
2 * Filename: xmodem.c 2 * Filename: xmodem.c
3 * Version: $Id: rx.c,v 1.1 2003/12/20 07:30:35 bug1 Exp $ 3 * Version: $Id: rx.c,v 1.2 2004/03/15 08:28:46 andersen Exp $
4 * Copyright: Copyright (C) 2001, Hewlett-Packard Company 4 * Copyright: Copyright (C) 2001, Hewlett-Packard Company
5 * Author: Christopher Hoover <ch@hpl.hp.com> 5 * Author: Christopher Hoover <ch@hpl.hp.com>
6 * Description: xmodem functionality for uploading of kernels 6 * Description: xmodem functionality for uploading of kernels
7 * and the like 7 * and the like
8 * Created at: Thu Dec 20 01:58:08 PST 2001 8 * Created at: Thu Dec 20 01:58:08 PST 2001
9 *-----------------------------------------------------------------------*/ 9 *-----------------------------------------------------------------------*/
10/* 10/*
11 * xmodem.c: xmodem functionality for uploading of kernels and 11 * xmodem.c: xmodem functionality for uploading of kernels and
12 * the like 12 * the like
13 * 13 *
14 * Copyright (C) 2001 Hewlett-Packard Laboratories 14 * Copyright (C) 2001 Hewlett-Packard Laboratories
@@ -69,7 +69,7 @@ Cf:
69#define TIMEOUT_LONG 10 69#define TIMEOUT_LONG 10
70#define MAXERRORS 10 70#define MAXERRORS 10
71 71
72static inline void write_byte(int fd, char cc) { 72static inline void write_byte(int fd, char cc) {
73 write(fd, &cc, 1); 73 write(fd, &cc, 1);
74} 74}
75 75
@@ -80,7 +80,7 @@ static inline void write_flush(int fd) {
80static inline void read_flush(int fd) { 80static inline void read_flush(int fd) {
81 tcflush(fd, TCIFLUSH); 81 tcflush(fd, TCIFLUSH);
82} 82}
83 83
84static int read_byte(int fd, unsigned int timeout) { 84static int read_byte(int fd, unsigned int timeout) {
85 char buf[1]; 85 char buf[1];
86 int n; 86 int n;
@@ -312,12 +312,12 @@ int rx_main(int argc, char **argv)
312 312
313 if (tcgetattr(ttyfd, &tty) < 0) 313 if (tcgetattr(ttyfd, &tty) < 0)
314 bb_error_msg_and_die("%s: tcgetattr failed: %m\n", argv[0]); 314 bb_error_msg_and_die("%s: tcgetattr failed: %m\n", argv[0]);
315 315
316 orig_tty = tty; 316 orig_tty = tty;
317 317
318 cfmakeraw(&tty); 318 cfmakeraw(&tty);
319 tcsetattr(ttyfd, TCSAFLUSH, &tty); 319 tcsetattr(ttyfd, TCSAFLUSH, &tty);
320 320
321 memset(&act, 0, sizeof(act)); 321 memset(&act, 0, sizeof(act));
322 act.sa_handler = sigalrm_handler; 322 act.sa_handler = sigalrm_handler;
323 sigaction(SIGALRM, &act, 0); 323 sigaction(SIGALRM, &act, 0);