Fixed build warnings
This commit is contained in:
@ -188,7 +188,7 @@ static inline BOOL GCDWebServerIsValidByteRange(NSRange range) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline NSError* GCDWebServerMakePosixError(int code) {
|
static inline NSError* GCDWebServerMakePosixError(int code) {
|
||||||
return [NSError errorWithDomain:NSPOSIXErrorDomain code:code userInfo:@{NSLocalizedDescriptionKey : [NSString stringWithUTF8String:strerror(code)]}];
|
return [NSError errorWithDomain:NSPOSIXErrorDomain code:code userInfo:@{NSLocalizedDescriptionKey : (NSString*)[NSString stringWithUTF8String:strerror(code)]}];
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void GCDWebServerInitializeFunctions();
|
extern void GCDWebServerInitializeFunctions();
|
||||||
|
|||||||
@ -254,7 +254,7 @@ NS_ASSUME_NONNULL_END
|
|||||||
[array addObject:@{
|
[array addObject:@{
|
||||||
@"path" : [relativePath stringByAppendingPathComponent:item],
|
@"path" : [relativePath stringByAppendingPathComponent:item],
|
||||||
@"name" : item,
|
@"name" : item,
|
||||||
@"size" : [attributes objectForKey:NSFileSize]
|
@"size" : (NSNumber*)[attributes objectForKey:NSFileSize]
|
||||||
}];
|
}];
|
||||||
} else if ([type isEqualToString:NSFileTypeDirectory]) {
|
} else if ([type isEqualToString:NSFileTypeDirectory]) {
|
||||||
[array addObject:@{
|
[array addObject:@{
|
||||||
|
|||||||
Reference in New Issue
Block a user