Fix indentation
This commit is contained in:
parent
2059be3a43
commit
016bcdb8a8
1 changed files with 209 additions and 210 deletions
|
@ -80,7 +80,8 @@ print_hex_line(unsigned char *prefix, unsigned char *outbuf, int index)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int
|
||||||
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
struct termios options;
|
struct termios options;
|
||||||
fd_set mask, smask;
|
fd_set mask, smask;
|
||||||
|
@ -215,8 +216,7 @@ int main(int argc, char **argv)
|
||||||
index = 0;
|
index = 0;
|
||||||
for(;;) {
|
for(;;) {
|
||||||
smask = mask;
|
smask = mask;
|
||||||
nfound = select(FD_SETSIZE, &smask, (fd_set *) 0, (fd_set *) 0,
|
nfound = select(FD_SETSIZE, &smask, (fd_set *) 0, (fd_set *) 0, (struct timeval *) 0);
|
||||||
(struct timeval *) 0);
|
|
||||||
if(nfound < 0) {
|
if(nfound < 0) {
|
||||||
if(errno == EINTR) {
|
if(errno == EINTR) {
|
||||||
fprintf(stderr, "interrupted system call\n");
|
fprintf(stderr, "interrupted system call\n");
|
||||||
|
@ -320,8 +320,7 @@ int main(int argc, char **argv)
|
||||||
if(index > 0) {
|
if(index > 0) {
|
||||||
if(flags != 2 && mode != MODE_SLIP_HIDE) {
|
if(flags != 2 && mode != MODE_SLIP_HIDE) {
|
||||||
/* not overflowed: show packet */
|
/* not overflowed: show packet */
|
||||||
print_hex_line("SLIP: ", rxbuf,
|
print_hex_line("SLIP: ", rxbuf, index > HCOLS ? HCOLS : index);
|
||||||
index > HCOLS ? HCOLS : index);
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
lastc = '\0';
|
lastc = '\0';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue