Ignore:
Timestamp:
Jun 4, 2008, 7:46:37 PM (14 years ago)
Author:
charles
Message:

(gtk) more work on the RPC preferences tab: the ACL editor works now & is wired up...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpc-server.c

    r6031 r6036  
    274274               char                ** setme_errmsg )
    275275{
    276     int ret = 0;
     276    int err = 0;
    277277    char * cidr = cidrize( acl );
    278278    char * errmsg = testACL( cidr );
     
    283283        else
    284284            tr_free( errmsg );
    285         ret = -1;
     285        err = -1;
    286286    }
    287287    tr_free( cidr );
    288     return ret;
     288    return err;
    289289}
    290290
     
    295295{
    296296    char * cidr = cidrize( acl );
    297     const int ret = tr_rpcTestACL( server, cidr, setme_errmsg );
    298 
    299     if( ret )
     297    const int err = tr_rpcTestACL( server, cidr, setme_errmsg );
     298
     299    if( err )
    300300    {
    301301        const int isRunning = server->ctx != NULL;
     
    311311    }
    312312
    313     return ret;
     313    return err;
    314314}
    315315
Note: See TracChangeset for help on using the changeset viewer.