summaryrefslogtreecommitdiff
path: root/ttymodes.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-26 14:10:34 +1100
committerDamien Miller <djm@mindrot.org>2006-03-26 14:10:34 +1100
commita5a2859275794e080fd1872006402a55498d7e95 (patch)
tree305f34557439ac86f7c0b8bf728fe2f753774310 /ttymodes.c
parent4f7becb44f26b61673b8478fd4aeee262adaf446 (diff)
- deraadt@cvs.openbsd.org 2006/03/20 21:11:53
[ttymodes.c] spacing
Diffstat (limited to 'ttymodes.c')
-rw-r--r--ttymodes.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/ttymodes.c b/ttymodes.c
index 2c95938d9..40d536e2c 100644
--- a/ttymodes.c
+++ b/ttymodes.c
@@ -385,7 +385,8 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
385 n_bytes += 4; 385 n_bytes += 4;
386 baud = packet_get_int(); 386 baud = packet_get_int();
387 debug3("tty_parse_modes: ispeed %d", baud); 387 debug3("tty_parse_modes: ispeed %d", baud);
388 if (failure != -1 && cfsetispeed(&tio, baud_to_speed(baud)) == -1) 388 if (failure != -1 &&
389 cfsetispeed(&tio, baud_to_speed(baud)) == -1)
389 error("cfsetispeed failed for %d", baud); 390 error("cfsetispeed failed for %d", baud);
390 break; 391 break;
391 392
@@ -395,7 +396,8 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
395 n_bytes += 4; 396 n_bytes += 4;
396 baud = packet_get_int(); 397 baud = packet_get_int();
397 debug3("tty_parse_modes: ospeed %d", baud); 398 debug3("tty_parse_modes: ospeed %d", baud);
398 if (failure != -1 && cfsetospeed(&tio, baud_to_speed(baud)) == -1) 399 if (failure != -1 &&
400 cfsetospeed(&tio, baud_to_speed(baud)) == -1)
399 error("cfsetospeed failed for %d", baud); 401 error("cfsetospeed failed for %d", baud);
400 break; 402 break;
401 403
@@ -443,11 +445,12 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
443 /* 445 /*
444 * It is a truly undefined opcode (160 to 255). 446 * It is a truly undefined opcode (160 to 255).
445 * We have no idea about its arguments. So we 447 * We have no idea about its arguments. So we
446 * must stop parsing. Note that some data may be 448 * must stop parsing. Note that some data
447 * left in the packet; hopefully there is nothing 449 * may be left in the packet; hopefully there
448 * more coming after the mode data. 450 * is nothing more coming after the mode data.
449 */ 451 */
450 logit("parse_tty_modes: unknown opcode %d", opcode); 452 logit("parse_tty_modes: unknown opcode %d",
453 opcode);
451 goto set; 454 goto set;
452 } 455 }
453 } else { 456 } else {
@@ -463,7 +466,8 @@ tty_parse_modes(int fd, int *n_bytes_ptr)
463 (void) packet_get_int(); 466 (void) packet_get_int();
464 break; 467 break;
465 } else { 468 } else {
466 logit("parse_tty_modes: unknown opcode %d", opcode); 469 logit("parse_tty_modes: unknown opcode %d",
470 opcode);
467 goto set; 471 goto set;
468 } 472 }
469 } 473 }