trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject trafficserver git commit: Fix clang analyzer issue
Date Thu, 22 Jan 2015 02:37:39 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 0b7bf112a -> b2adc7041


Fix clang analyzer issue


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/b2adc704
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/b2adc704
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/b2adc704

Branch: refs/heads/master
Commit: b2adc70419bec7728e2b8a4400e499a10476a917
Parents: 0b7bf11
Author: Phil Sorber <sorber@apache.org>
Authored: Wed Jan 21 19:37:28 2015 -0700
Committer: Phil Sorber <sorber@apache.org>
Committed: Wed Jan 21 19:37:28 2015 -0700

----------------------------------------------------------------------
 iocore/net/UnixNetVConnection.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b2adc704/iocore/net/UnixNetVConnection.cc
----------------------------------------------------------------------
diff --git a/iocore/net/UnixNetVConnection.cc b/iocore/net/UnixNetVConnection.cc
index 8262509..bbe0c14 100644
--- a/iocore/net/UnixNetVConnection.cc
+++ b/iocore/net/UnixNetVConnection.cc
@@ -1134,10 +1134,10 @@ UnixNetVConnection::connectUp(EThread *t, int fd)
   } else {
     int len = sizeof(con.sock_type);
 
-    // This call will fail if fd is not a socket (e.g. it is a 
+    // This call will fail if fd is not a socket (e.g. it is a
     // eventfd or a regular file fd.  That is ok, because sock_type
     // is only used when setting up the socket.
-    res = safe_getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&con.sock_type, &len);
+    safe_getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&con.sock_type, &len);
     safe_nonblocking(fd);
     con.fd = fd;
     con.is_connected = true;


Mime
View raw message