diff options
Diffstat (limited to 'nchan.c')
-rw-r--r-- | nchan.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: nchan.c,v 1.61 2008/09/11 14:22:37 markus Exp $ */ | 1 | /* $OpenBSD: nchan.c,v 1.62 2008/11/07 18:50:18 stevesk Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -486,12 +486,12 @@ chan_shutdown_write(Channel *c) | |||
486 | if (c->sock != -1) { | 486 | if (c->sock != -1) { |
487 | if (shutdown(c->sock, SHUT_WR) < 0) | 487 | if (shutdown(c->sock, SHUT_WR) < 0) |
488 | debug2("channel %d: chan_shutdown_write: " | 488 | debug2("channel %d: chan_shutdown_write: " |
489 | "shutdown() failed for fd%d: %.100s", | 489 | "shutdown() failed for fd %d: %.100s", |
490 | c->self, c->sock, strerror(errno)); | 490 | c->self, c->sock, strerror(errno)); |
491 | } else { | 491 | } else { |
492 | if (channel_close_fd(&c->wfd) < 0) | 492 | if (channel_close_fd(&c->wfd) < 0) |
493 | logit("channel %d: chan_shutdown_write: " | 493 | logit("channel %d: chan_shutdown_write: " |
494 | "close() failed for fd%d: %.100s", | 494 | "close() failed for fd %d: %.100s", |
495 | c->self, c->wfd, strerror(errno)); | 495 | c->self, c->wfd, strerror(errno)); |
496 | } | 496 | } |
497 | } | 497 | } |
@@ -510,13 +510,13 @@ chan_shutdown_read(Channel *c) | |||
510 | if (shutdown(c->sock, SHUT_RD) < 0 | 510 | if (shutdown(c->sock, SHUT_RD) < 0 |
511 | && errno != ENOTCONN) | 511 | && errno != ENOTCONN) |
512 | error("channel %d: chan_shutdown_read: " | 512 | error("channel %d: chan_shutdown_read: " |
513 | "shutdown() failed for fd%d [i%d o%d]: %.100s", | 513 | "shutdown() failed for fd %d [i%d o%d]: %.100s", |
514 | c->self, c->sock, c->istate, c->ostate, | 514 | c->self, c->sock, c->istate, c->ostate, |
515 | strerror(errno)); | 515 | strerror(errno)); |
516 | } else { | 516 | } else { |
517 | if (channel_close_fd(&c->rfd) < 0) | 517 | if (channel_close_fd(&c->rfd) < 0) |
518 | logit("channel %d: chan_shutdown_read: " | 518 | logit("channel %d: chan_shutdown_read: " |
519 | "close() failed for fd%d: %.100s", | 519 | "close() failed for fd %d: %.100s", |
520 | c->self, c->rfd, strerror(errno)); | 520 | c->self, c->rfd, strerror(errno)); |
521 | } | 521 | } |
522 | } | 522 | } |