Ignore:
Timestamp:
May 13, 2009, 7:04:14 PM (13 years ago)
Author:
charles
Message:

(trunk libT) fix small dead code. found by clang static analyzer and reported by d0k

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r8242 r8391  
    531531    const int               type = SOCK_STREAM;
    532532    int                     addrlen;
    533     int                     retval;
    534533
    535534#if defined( SO_REUSEADDR ) || defined( SO_REUSEPORT ) || defined( IPV6_V6ONLY )
     
    549548#ifdef IPV6_V6ONLY
    550549    if( addr->type == TR_AF_INET6 &&
    551         ( retval = setsockopt( s, IPPROTO_IPV6, IPV6_V6ONLY, &optval,
    552                              sizeof( optval ) ) ) == -1 ) {
     550        setsockopt( s, IPPROTO_IPV6, IPV6_V6ONLY, &optval,
     551                             sizeof( optval ) ) == -1 ) {
    553552        /* the kernel may not support this. if not, ignore it */
    554553        if( errno != ENOPROTOOPT )
Note: See TracChangeset for help on using the changeset viewer.