Moved project to 10.5 SDK. Fixed warnings.
This commit is contained in:
parent
11352ab6de
commit
656fc0a113
6 changed files with 9 additions and 9 deletions
|
@ -121,7 +121,7 @@ EVP_PKEY* load_dsa_key(char *key)
|
||||||
for (di = 0; di < 16; di++)
|
for (di = 0; di < 16; di++)
|
||||||
sprintf(hexDigest + di*2, "%02x", digest[di]);
|
sprintf(hexDigest + di*2, "%02x", digest[di]);
|
||||||
|
|
||||||
return [hash isEqualToString:[NSString stringWithCString:hexDigest]];
|
return [hash isEqualToString:[NSString stringWithUTF8String:hexDigest]];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature
|
- (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature
|
||||||
|
|
2
Frameworks/Sparkle/SUAppcast.h
vendored
2
Frameworks/Sparkle/SUAppcast.h
vendored
|
@ -23,5 +23,5 @@
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface NSObject (SUAppcastDelegate)
|
@interface NSObject (SUAppcastDelegate)
|
||||||
- appcastDidFinishLoading:(SUAppcast *)appcast;
|
- (void)appcastDidFinishLoading:(SUAppcast *)appcast;
|
||||||
@end
|
@end
|
2
Frameworks/Sparkle/SUStatusChecker.m
vendored
2
Frameworks/Sparkle/SUStatusChecker.m
vendored
|
@ -67,7 +67,7 @@
|
||||||
}
|
}
|
||||||
@catch (NSException *e)
|
@catch (NSException *e)
|
||||||
{
|
{
|
||||||
NSLog([e reason]);
|
NSLog(@"%@", [e reason]);
|
||||||
|
|
||||||
[scDelegate statusChecker:self foundVersion:nil isNewVersion:NO];
|
[scDelegate statusChecker:self foundVersion:nil isNewVersion:NO];
|
||||||
}
|
}
|
||||||
|
|
2
Frameworks/Sparkle/SUUnarchiver.m
vendored
2
Frameworks/Sparkle/SUUnarchiver.m
vendored
|
@ -27,7 +27,7 @@
|
||||||
if ((fp = fopen([archivePath UTF8String], "r")))
|
if ((fp = fopen([archivePath UTF8String], "r")))
|
||||||
{
|
{
|
||||||
setenv("DESTINATION", [[archivePath stringByDeletingLastPathComponent] UTF8String], 1);
|
setenv("DESTINATION", [[archivePath stringByDeletingLastPathComponent] UTF8String], 1);
|
||||||
if ((cmdFP = popen([command cString], "w")))
|
if ((cmdFP = popen([command UTF8String], "w")))
|
||||||
{
|
{
|
||||||
char buf[32*1024];
|
char buf[32*1024];
|
||||||
long len;
|
long len;
|
||||||
|
|
6
Frameworks/Sparkle/SUUpdater.m
vendored
6
Frameworks/Sparkle/SUUpdater.m
vendored
|
@ -334,7 +334,7 @@
|
||||||
}
|
}
|
||||||
@catch (NSException *e)
|
@catch (NSException *e)
|
||||||
{
|
{
|
||||||
NSLog([e reason]);
|
NSLog(@"%@", [e reason]);
|
||||||
updateInProgress = NO;
|
updateInProgress = NO;
|
||||||
if (verbose)
|
if (verbose)
|
||||||
[self showUpdateErrorAlertWithInfo:SULocalizedString(@"An error occurred in retrieving update information. Please try again later.", nil)];
|
[self showUpdateErrorAlertWithInfo:SULocalizedString(@"An error occurred in retrieving update information. Please try again later.", nil)];
|
||||||
|
@ -435,7 +435,7 @@
|
||||||
[unarchiver unarchivePath:downloadPath]; // asynchronous extraction!
|
[unarchiver unarchivePath:downloadPath]; // asynchronous extraction!
|
||||||
}
|
}
|
||||||
@catch(NSException *e) {
|
@catch(NSException *e) {
|
||||||
NSLog([e reason]);
|
NSLog(@"%@", [e reason]);
|
||||||
[self showUpdateErrorAlertWithInfo:SULocalizedString(@"An error occurred while extracting the archive. Please try again later.", nil)];
|
[self showUpdateErrorAlertWithInfo:SULocalizedString(@"An error occurred while extracting the archive. Please try again later.", nil)];
|
||||||
[self abandonUpdate];
|
[self abandonUpdate];
|
||||||
}
|
}
|
||||||
|
@ -504,7 +504,7 @@
|
||||||
}
|
}
|
||||||
@catch(NSException *e)
|
@catch(NSException *e)
|
||||||
{
|
{
|
||||||
NSLog([e reason]);
|
NSLog(@"%@", [e reason]);
|
||||||
[self showUpdateErrorAlertWithInfo:SULocalizedString(@"An error occurred during installation. Please try again later.", nil)];
|
[self showUpdateErrorAlertWithInfo:SULocalizedString(@"An error occurred during installation. Please try again later.", nil)];
|
||||||
[self abandonUpdate];
|
[self abandonUpdate];
|
||||||
}
|
}
|
||||||
|
|
|
@ -663,7 +663,7 @@
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.4;
|
MACOSX_DEPLOYMENT_TARGET = 10.4;
|
||||||
PREBINDING = NO;
|
PREBINDING = NO;
|
||||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
|
||||||
SYMROOT = ../../build;
|
SYMROOT = ../../build;
|
||||||
WARNING_CFLAGS = "-wall";
|
WARNING_CFLAGS = "-wall";
|
||||||
};
|
};
|
||||||
|
@ -680,7 +680,7 @@
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.4;
|
MACOSX_DEPLOYMENT_TARGET = 10.4;
|
||||||
PREBINDING = NO;
|
PREBINDING = NO;
|
||||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
|
||||||
SYMROOT = ../../build;
|
SYMROOT = ../../build;
|
||||||
WARNING_CFLAGS = "-wall";
|
WARNING_CFLAGS = "-wall";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue