From a3bb61d13be3b12e19288db676b7d1377f576a1f Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 5 Apr 2008 20:18:47 +0000 Subject: [PATCH] mac build compiles again --- macosx/Controller.m | 3 ++- macosx/IPCController.m | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 4bd9f149f..ae72920d3 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -195,7 +195,8 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi { fDefaults = [NSUserDefaults standardUserDefaults]; - fLib = tr_initFull("macosx", + fLib = tr_initFull(NULL, /* use default config directory (Application Support) */ + "macosx", [fDefaults boolForKey: @"PEXGlobal"], [fDefaults boolForKey: @"NatTraversal"], [fDefaults integerForKey: @"BindPort"], diff --git a/macosx/IPCController.m b/macosx/IPCController.m index c84265b0f..0cdbec8cc 100644 --- a/macosx/IPCController.m +++ b/macosx/IPCController.m @@ -514,7 +514,7 @@ void getaddr( struct sockaddr_un * sun ) { bzero( sun, sizeof *sun ); sun->sun_family = AF_LOCAL; - strlcpy( sun->sun_path, tr_getPrefsDirectory(), sizeof sun->sun_path ); + strlcpy( sun->sun_path, tr_getDefaultConfigDir(), sizeof sun->sun_path ); strlcat( sun->sun_path, "/socket", sizeof sun->sun_path ); } -- 2.40.0