Changeset 6030


Ignore:
Timestamp:
Jun 4, 2008, 4:24:49 PM (13 years ago)
Author:
livings124
Message:

print the rpc access list error message to Console

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r6027 r6030  
    672672    NSString * string = [components componentsJoinedByString: @","];
    673673   
    674     #warning check for an error!
    675     tr_sessionSetRPCACL(fHandle, [string UTF8String], NULL);
     674    char ** error = (char **)tr_malloc(sizeof(char **));
     675    if (tr_sessionSetRPCACL(fHandle, [string UTF8String], error))
     676    {
     677        NSLog([NSString stringWithUTF8String: *error]);
     678        tr_free(*error);
     679    }
     680    tr_free(error);
    676681}
    677682
Note: See TracChangeset for help on using the changeset viewer.