Changeset 9835


Ignore:
Timestamp:
Dec 28, 2009, 11:25:50 PM (12 years ago)
Author:
charles
Message:

(trunk libT) fix minor bug in r9651 "Reduce SO_SNDBUF and SO_RCVBUF for tracker announce/scrape messages" -- libcurl's CURLOPT_SOCKOPTFUNCTION doesn't return void; it returns an int that is nonzero if an error occurs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r9833 r9835  
    108108}
    109109
    110 static void
     110static int
    111111sockoptfunction( void * vtask, curl_socket_t fd, curlsocktype purpose UNUSED )
    112112{
     
    124124        setsockopt( fd, SOL_SOCKET, SO_RCVBUF, &rcvbuf, sizeof(rcvbuf) );
    125125    }
     126
     127    /* return nonzero if this function encountered an error */
     128    return 0;
    126129}
    127130
Note: See TracChangeset for help on using the changeset viewer.