Changeset 8391


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

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

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/ConvertUTF.c

    r7748 r8391  
    354354{
    355355    const UTF8* source = (const UTF8*) str;
    356     const UTF8* sourceEnd = source;
     356    const UTF8* sourceEnd;
    357357
    358358    if( max_len == 0 )
  • 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 )
  • trunk/libtransmission/web.c

    r8233 r8391  
    8585getSockinfo( tr_web * web, int fd, tr_bool createIfMissing )
    8686{
    87     tr_list * l = web->fds;
     87    tr_list * l;
    8888
    8989    for( l=web->fds; l!=NULL; l=l->next ) {
Note: See TracChangeset for help on using the changeset viewer.