diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-06-05 01:47:40 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-06-17 17:12:26 +0200 |
commit | 90f6ab2eceada8987fc6e5017ae415eade165c00 (patch) | |
tree | 6dd7d7f057512b69861faa9c72420929789227db /netrom/nrsdrv.c | |
parent | 5feb3d651dbd1b096a26963bd1dffcfe0a5f9eea (diff) |
Use tabs for indentation, not spaces.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'netrom/nrsdrv.c')
-rw-r--r-- | netrom/nrsdrv.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/netrom/nrsdrv.c b/netrom/nrsdrv.c index c58c13f..52ad0a4 100644 --- a/netrom/nrsdrv.c +++ b/netrom/nrsdrv.c @@ -81,16 +81,16 @@ static void key_rts(int fd) /* Wait for CTS to be low */ while (1) { /* Get CTS status */ - if (ioctl(fd, TIOCMGET, &status) < 0) { + if (ioctl(fd, TIOCMGET, &status) < 0) { syslog(LOG_INFO|LOG_ERR, "TIOCMGET failed: flowcontrol disabled (%m)\n"); flowcontrol = 0; - return; - } + return; + } if (status & TIOCM_CTS) { if (debugging) { fprintf(stderr,"CTS high: waiting\n"); } - ioctl(fd, TIOCMIWAIT, &status); + ioctl(fd, TIOCMIWAIT, &status); } else { break; } @@ -100,10 +100,10 @@ static void key_rts(int fd) fprintf(stderr,"CTS low: keying RTS\n"); } status |= TIOCM_RTS | TIOCM_DTR; - if (ioctl(fd, TIOCMSET, &status) < 0) { + if (ioctl(fd, TIOCMSET, &status) < 0) { syslog(LOG_INFO|LOG_ERR, "TIOCMGET failed: flowcontrol disabled (%m)\n"); flowcontrol = 0; - } + } } static void unkey_rts(int fd) @@ -116,13 +116,13 @@ static void unkey_rts(int fd) if (debugging) { fprintf(stderr,"Transmission finished: unkeying RTS\n"); } - ioctl(fd, TIOCMGET, &status); + ioctl(fd, TIOCMGET, &status); status &= ~TIOCM_RTS; - status |= TIOCM_DTR; - if (ioctl(fd, TIOCMSET, &status) < 0) { + status |= TIOCM_DTR; + if (ioctl(fd, TIOCMSET, &status) < 0) { syslog(LOG_INFO|LOG_ERR, "TIOCMGET failed: flowcontrol disabled (%m)\n"); flowcontrol = 0; - } + } } static void nrs_esc(unsigned char *s, int len) |