OSDN Git Service

* typo fix
authorfche <fche>
Wed, 21 Mar 2001 19:13:47 +0000 (19:13 +0000)
committerfche <fche>
Wed, 21 Mar 2001 19:13:47 +0000 (19:13 +0000)
2001-03-21  Frank Ch. Eigler  <fche@redhat.com>

        * socketio.cxx (asyncificate): Correct fd typo.

sid/component/consoles/ChangeLog
sid/component/consoles/socketio.cxx

index 1c962ac..17630ba 100644 (file)
@@ -1,3 +1,7 @@
+2001-03-21  Frank Ch. Eigler  <fche@redhat.com>
+
+       * socketio.cxx (asyncificate): Correct fd typo.
+
 2001-03-14  Frank Ch. Eigler  <fche@redhat.com>
 
        * socketio.cxx (asyncificate): Set TCP_NODELAY and SO_KEEPALIVE options.
index ab9ba40..422e1b3 100644 (file)
@@ -258,12 +258,12 @@ socketio::socketio(bool s):
 {
   // Disable transmit coalescing
   int on = 1;
-  int rc = setsockopt (this->fd, IPPROTO_TCP, TCP_NODELAY, (char*)&on, sizeof (on));
+  int rc = setsockopt (fd, IPPROTO_TCP, TCP_NODELAY, (char*)&on, sizeof (on));
   if (rc)
     cerr << "setsockopt TCP_NODELAY error: " << std_error_string() << endl;
 
   on = 1;
-  rc = setsockopt (this->fd, SOL_SOCKET, SO_KEEPALIVE, (char *)&on, sizeof (on));
+  rc = setsockopt (fd, SOL_SOCKET, SO_KEEPALIVE, (char *)&on, sizeof (on));
   if (rc)
     cerr << "setsockopt SO_KEEPALIVE error: " << std_error_string() << endl;