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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.