Changeset 8904


Ignore:
Timestamp:
Aug 12, 2009, 7:44:32 PM (12 years ago)
Author:
charles
Message:

(trunk libT) very minor tweak: tr_httpIsValidURL() should return a tr_bool, not an int.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r8889 r8904  
    924924***/
    925925
    926 int
     926tr_bool
    927927tr_httpIsValidURL( const char * url )
    928928{
    929     const char *        c;
     929    const char * c;
    930930    static const char * rfc2396_valid_chars =
    931931        "abcdefghijklmnopqrstuvwxyz" /* lowalpha */
     
    944944            return FALSE;
    945945
    946     return !tr_httpParseURL( url, -1, NULL, NULL, NULL );
     946    return tr_httpParseURL( url, -1, NULL, NULL, NULL ) == 0;
    947947}
    948948
  • trunk/libtransmission/utils.h

    r8889 r8904  
    376376
    377377
    378 int tr_httpIsValidURL( const char * url );
     378tr_bool tr_httpIsValidURL( const char * url );
    379379
    380380int  tr_httpParseURL( const char * url,
Note: See TracChangeset for help on using the changeset viewer.