Skip to content

Commit

Permalink
Fix warnings, and get rid of the un-needed sshnodelay.so.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Gorbach committed Nov 27, 2010
1 parent 2fe4d6b commit 781ab2e
Show file tree
Hide file tree
Showing 21 changed files with 46 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.mode1v3
*.pbxuser
14 changes: 7 additions & 7 deletions IconFamily.m
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ + (Handle) get32BitDataFromBitmapImageRep:(NSBitmapImageRep*)bitmapImageRep requ
}
if (bitsPerSample != 8)
{
NSLog(@"get32BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerSample == %d", bitsPerSample);
NSLog(@"get32BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerSample == %lu", bitsPerSample);
return NULL;
}

Expand Down Expand Up @@ -1280,7 +1280,7 @@ + (Handle) get32BitDataFromBitmapImageRep:(NSBitmapImageRep*)bitmapImageRep requ
}
else
{
NSLog(@"get32BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to samplesPerPixel == %d, bitsPerPixel == %", samplesPerPixel, bitsPerPixel);
NSLog(@"get32BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to samplesPerPixel == %lu, bitsPerPixel == %lu", samplesPerPixel, bitsPerPixel);
return NULL;
}

Expand Down Expand Up @@ -1319,7 +1319,7 @@ + (Handle) get8BitDataFromBitmapImageRep:(NSBitmapImageRep*)bitmapImageRep requi
}
if (bitsPerSample != 8)
{
NSLog(@"get8BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerSample == %d", bitsPerSample);
NSLog(@"get8BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerSample == %lu", bitsPerSample);
return NULL;
}

Expand Down Expand Up @@ -1369,7 +1369,7 @@ + (Handle) get8BitDataFromBitmapImageRep:(NSBitmapImageRep*)bitmapImageRep requi
}
else
{
NSLog(@"get8BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to samplesPerPixel == %d, bitsPerPixel == %", samplesPerPixel, bitsPerPixel);
NSLog(@"get8BitDataFromBitmapImageRep:requiredPixelSize: returning NULL due to samplesPerPixel == %lu, bitsPerPixel == %lu", samplesPerPixel, bitsPerPixel);
return NULL;
}

Expand Down Expand Up @@ -1408,7 +1408,7 @@ + (Handle) get8BitMaskFromBitmapImageRep:(NSBitmapImageRep*)bitmapImageRep requi
}
if (bitsPerSample != 8)
{
NSLog(@"get8BitMaskFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerSample == %d", bitsPerSample);
NSLog(@"get8BitMaskFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerSample == %lu", bitsPerSample);
return NULL;
}

Expand Down Expand Up @@ -1445,7 +1445,7 @@ + (Handle) get8BitMaskFromBitmapImageRep:(NSBitmapImageRep*)bitmapImageRep requi
}
else
{
NSLog(@"get8BitMaskFromBitmapImageRep:requiredPixelSize: returning NULL due to samplesPerPixel == %d, bitsPerPixel == %", samplesPerPixel, bitsPerPixel);
NSLog(@"get8BitMaskFromBitmapImageRep:requiredPixelSize: returning NULL due to samplesPerPixel == %lu, bitsPerPixel == %lu", samplesPerPixel, bitsPerPixel);
return NULL;
}

Expand Down Expand Up @@ -1546,7 +1546,7 @@ + (Handle) get1BitMaskFromBitmapImageRep:(NSBitmapImageRep*)bitmapImageRep requi
}
else
{
NSLog(@"get1BitMaskFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerPixel == %d, samplesPerPixel== %d, bitsPerSample == %d", bitsPerPixel, samplesPerPixel, bitsPerSample);
NSLog(@"get1BitMaskFromBitmapImageRep:requiredPixelSize: returning NULL due to bitsPerPixel == %lu, samplesPerPixel== %lu, bitsPerSample == %lu", bitsPerPixel, samplesPerPixel, bitsPerSample);
return NULL;
}

Expand Down
3 changes: 2 additions & 1 deletion MFClientFS.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
#import "IconFamily.h"
#import "MFAdvancedViewController.h"
#import "MGNSImage.h"
#import "MFLogging.h"

#import <QuartzCore/QuartzCore.h>
#import "MGNSImage.h"

@interface MFClientFS (PrivateAPI)
- (void)fillInitialData;
Expand Down
3 changes: 2 additions & 1 deletion MFClientFSUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#import "MFClientFSUI.h"
#import "MFAdvancedViewController.h"
#import "MGTransitioningTabView.h"
#import "MFLogging.h"

NSString *kMFUIMainViewKey=@"main";
NSString *kMFUIAdvancedViewKey=@"advanced";
Expand Down Expand Up @@ -111,7 +112,7 @@ - (NSView *)editingView {
[tabView setFrame:NSMakeRect( 0, 0, tabview_x+view_width, tabview_y+150 )];
editingTabView = tabView;
} else {
MFLogSO(self, @"No view loaded for fs %@", self);
MFLogSO(self, @"No view loaded for fs %@", [self name]);
return nil;
}
}
Expand Down
1 change: 1 addition & 0 deletions MFCommunicationServer.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#import "MFPreferences.h"
#import "MFClientProtocol.h"
#import "MFLogging.h"
#import "MFCore.h"

@implementation MFCommunicationServer
static MFCommunicationServer *sharedServer = nil;
Expand Down
1 change: 1 addition & 0 deletions MFCore.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#import "MFCore.h"
#import "MFConstants.h"
#import "MFServerProtocol.h"
#import "MFLogging.h"

#define self @"MFCORE"

Expand Down
1 change: 1 addition & 0 deletions MFEditingController.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#import "MFEditingController.h"
#import "MGTransitioningTabView.h"
#import "MFClientFSUI.h"
#import "MFLogging.h"

@interface MFEditingController(PrivateAPI)
- (id)initWithFilesystem:(MFClientFS *)fs;
Expand Down
2 changes: 1 addition & 1 deletion MFFilesystem.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#import "MFFilesystem.h"
#import "MFPlugin.h"
#import "MFConstants.h"]
#import "MFConstants.h"
#import "MFSecurity.h"

#define FS_DIR_PATH @"~/Library/Application Support/Macfusion/Filesystems"
Expand Down
4 changes: 3 additions & 1 deletion MFFilesystemController.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#import "MFServerFS.h"
#import "MFError.h"
#import "MFConstants.h"
#import "MFLogging.h"

#import <DiskArbitration/DiskArbitration.h>

#define FSDEF_EXTENSION @"macfusion"
Expand Down Expand Up @@ -310,7 +312,7 @@ - (NSString *)tokenForFilesystem:(MFServerFS *)fs {
NSString *tokenString = [(NSString *)string autorelease];
if ([[_tokens allValues] containsObject: fs]) {
MFLogSO(self, fs, @"Uh oh ... adding a second token for an FS already in tokens");
MFLogSO(self, @"Tokens Before %@", _tokens);
// MFLogSO(self, _tokens, @"Tokens Before %@", _tokens);
}

[_tokens setObject: fs forKey: tokenString];
Expand Down
3 changes: 2 additions & 1 deletion MFMainController.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
#import "MFFilesystemController.h"
#import "MFFilesystem.h"
#import "MFCommunicationServer.h"
#include <sys/xattr.h>
#import "MFLogging.h"
#import "MFConstants.h"
#import "MFCore.h"

#include <sys/xattr.h>
@implementation MFMainController
static MFMainController* sharedController = nil;

Expand Down
1 change: 1 addition & 0 deletions MFPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#import "MFPlugin.h"
#import "MFConstants.h"
#import "MFLogging.h"

@interface MFPlugin(PrivateAPI)
@end
Expand Down
1 change: 1 addition & 0 deletions MFPluginController.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#import "MFServerPlugin.h"
#import "MFServerFS.h"
#import "MFCore.h"
#import "MFLogging.h"

#define PLUGIN_EXTENSION @"mfplugin"

Expand Down
2 changes: 2 additions & 0 deletions MFPreferences.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
//

#import "MFPreferences.h"
#import "MFLogging.h"

#import <Carbon/Carbon.h>

#define PREFS_FILE_PATH @"~/Library/Application Support/Macfusion/Preferences/preferences.plist"
Expand Down
1 change: 1 addition & 0 deletions MFPreferencesController.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#import "MFCore.h"
#import "MFClient.h"
#import "MFPreferences.h"
#import "MFLogging.h"

#define kMFPrefsPluginToolbarIdentifier @"Plugin"
#define kMFPrefsGeneralToolbarIdentifier @"General"
Expand Down
3 changes: 1 addition & 2 deletions MFSecurity.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@
SecProtocolType protocol = [[[fs parameters] objectForKey:kNetFSProtocolParameter] intValue];

if (userName && hostName && port && protocol) {
OSStatus error = SecKeychainFindInternetPassword(NULL,[hostName lengthOfBytesUsingEncoding: NSUTF8StringEncoding],[hostName UTF8String],0,NULL,[userName lengthOfBytesUsingEncoding: NSUTF8StringEncoding],[userName UTF8String],0,NULL,port,protocol,
(SecAuthenticationType)NULL,&passwordLength,&passwordData,itemRef);
OSStatus error = SecKeychainFindInternetPassword(NULL,[hostName lengthOfBytesUsingEncoding: NSUTF8StringEncoding],[hostName UTF8String],0,NULL,[userName lengthOfBytesUsingEncoding: NSUTF8StringEncoding],[userName UTF8String],0,NULL,port,protocol,(SecAuthenticationType)NULL,&passwordLength,&passwordData,itemRef);
if (error == noErr) {
// MFLogS(self, @"Successfully found internet password for fs %@", fs);
NSString *password = [NSString stringWithCString:passwordData encoding:NSUTF8StringEncoding];
Expand Down
2 changes: 2 additions & 0 deletions MFServerFS.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#import "MFLogging.h"
#import "MFPreferences.h"

#import <sys/xattr.h>

#define FS_DIR_PATH @"~/Library/Application Support/Macfusion/Filesystems"

@interface MFServerFS (PrivateAPI)
Expand Down
15 changes: 11 additions & 4 deletions MacFusion2.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
D49059750D35681F00E21C1E /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D49059740D35681F00E21C1E /* AppKit.framework */; };
D4905C330D393F8300E21C1E /* MFClientPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = D4905C310D393F8300E21C1E /* MFClientPlugin.h */; };
D4905C340D393F8300E21C1E /* MFClientPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = D4905C320D393F8300E21C1E /* MFClientPlugin.m */; };
D4B14BC90CE03D25003195A3 /* sshnodelay.so in Resources */ = {isa = PBXBuildFile; fileRef = D4B14BAA0CE03C84003195A3 /* sshnodelay.so */; };
D4B14BCB0CE03D25003195A3 /* sshfs-static in Resources */ = {isa = PBXBuildFile; fileRef = D4B14BAC0CE03C84003195A3 /* sshfs-static */; };
D4B14D740CE195CB003195A3 /* mfctl.m in Sources */ = {isa = PBXBuildFile; fileRef = D4B14D730CE195CB003195A3 /* mfctl.m */; };
D4B14EE30CE2468B003195A3 /* MFLogging.h in Headers */ = {isa = PBXBuildFile; fileRef = D4B14EE10CE2468B003195A3 /* MFLogging.h */; };
Expand Down Expand Up @@ -437,7 +436,6 @@
D4905C6C0D394A5D00E21C1E /* MFServerFS.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MFServerFS.m; sourceTree = "<group>"; };
D4905C6E0D394A6700E21C1E /* MFServerPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MFServerPlugin.h; sourceTree = "<group>"; };
D4905C6F0D394A6700E21C1E /* MFServerPlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MFServerPlugin.m; sourceTree = "<group>"; };
D4B14BAA0CE03C84003195A3 /* sshnodelay.so */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = sshnodelay.so; sourceTree = "<group>"; };
D4B14BAC0CE03C84003195A3 /* sshfs-static */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; path = "sshfs-static"; sourceTree = "<group>"; };
D4B14C0F0CE03F4C003195A3 /* sshfs-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "sshfs-Info.plist"; sourceTree = "<group>"; };
D4B14C840CE0455A003195A3 /* MFPluginController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MFPluginController.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -840,7 +838,6 @@
D4656C8C0D6FD6DC00DE2208 /* sshfs.png */,
D439D6D50D0A0FDE0025574A /* sshfsConfiguration.xib */,
D4B14C0F0CE03F4C003195A3 /* sshfs-Info.plist */,
D4B14BAA0CE03C84003195A3 /* sshnodelay.so */,
D4B14BAC0CE03C84003195A3 /* sshfs-static */,
D41316310D7F740400F55B9B /* sshfsAdvanced.xib */,
);
Expand Down Expand Up @@ -1230,7 +1227,14 @@
isa = PBXProject;
buildConfigurationList = 1DEB927808733DD40010E9CD /* Build configuration list for PBXProject "MacFusion2" */;
compatibilityVersion = "Xcode 3.0";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
English,
Japanese,
French,
German,
);
mainGroup = 08FB7794FE84155DC02AAC07 /* macfusiond */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -1283,7 +1287,6 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D4B14BC90CE03D25003195A3 /* sshnodelay.so in Resources */,
D4B14BCB0CE03D25003195A3 /* sshfs-static in Resources */,
D439D6D60D0A0FDE0025574A /* sshfsConfiguration.xib in Resources */,
D4656C8D0D6FD6DC00DE2208 /* sshfs_icon.icns in Resources */,
Expand Down Expand Up @@ -1575,6 +1578,7 @@
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
Expand Down Expand Up @@ -1688,6 +1692,7 @@
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)";
ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = NO;
Expand Down Expand Up @@ -1963,6 +1968,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ONLY_ACTIVE_ARCH_PRE_XCODE_3_1)";
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH_PRE_XCODE_3_1 = "$(NATIVE_ARCH_ACTUAL)";
Expand Down Expand Up @@ -2572,6 +2578,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ONLY_ACTIVE_ARCH_PRE_XCODE_3_1)";
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH_PRE_XCODE_3_1 = "$(NATIVE_ARCH_ACTUAL)";
Expand Down
2 changes: 2 additions & 0 deletions Menuling/MFMenulingAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#import "MFConstants.h"
#import "MFError.h"
#import "MFCore.h"
#import "MFLogging.h"

#import <Carbon/Carbon.h>

#define MENU_ICON_SIZE 24
Expand Down
3 changes: 2 additions & 1 deletion Menuling/MFQuickMountController.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
// limitations under the License.

#import <Cocoa/Cocoa.h>
#import "MFClientFSDelegateProtocol.h";

#import "MFClientFSDelegateProtocol.h"

@class MFClientFS, MFClient;

Expand Down
Binary file removed SSHFS/sshnodelay.so
Binary file not shown.
1 change: 1 addition & 0 deletions Settings/MFSettingsController.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#import "MFClientFSUI.h"
#import "MFEditingController.h"
#import "MFPreferences.h"
#import "MFLogging.h"

@interface MFSettingsController(PrivateAPI)
- (void)editFilesystem:(MFClientFS*)fs;
Expand Down

0 comments on commit 781ab2e

Please sign in to comment.