mirror of
https://github.com/samsonjs/arq_restore.git
synced 2026-03-25 09:25:53 +00:00
fixed up return values in block prototypes
This commit is contained in:
parent
0f0c956e16
commit
611c007d50
4 changed files with 4 additions and 4 deletions
|
|
@ -283,7 +283,7 @@ extern unsigned long long const kDDDefaultLogFilesDiskQuota;
|
|||
// You can optionally force the current log file to be rolled with this method.
|
||||
// CompletionBlock will be called on main queue.
|
||||
|
||||
- (void)rollLogFileWithCompletionBlock:(void (^)())completionBlock;
|
||||
- (void)rollLogFileWithCompletionBlock:(void (^)(void))completionBlock;
|
||||
|
||||
// Method is deprecated. Use rollLogFileWithCompletionBlock: method instead.
|
||||
|
||||
|
|
|
|||
|
|
@ -823,7 +823,7 @@ unsigned long long const kDDDefaultLogFilesDiskQuota = 20 * 1024 * 1024; // 20
|
|||
[self rollLogFileWithCompletionBlock:nil];
|
||||
}
|
||||
|
||||
- (void)rollLogFileWithCompletionBlock:(void (^)())completionBlock {
|
||||
- (void)rollLogFileWithCompletionBlock:(void (^)(void))completionBlock {
|
||||
// This method is public.
|
||||
// We need to execute the rolling on our logging thread/queue.
|
||||
|
||||
|
|
|
|||
|
|
@ -42,5 +42,5 @@
|
|||
}
|
||||
- (id)initWithPath:(NSString *)thePath;
|
||||
- (BOOL)tryLock:(NSError **)error;
|
||||
- (BOOL)lockAndExecute:(void (^)())block error:(NSError **)error;
|
||||
- (BOOL)lockAndExecute:(void (^)(void))block error:(NSError **)error;
|
||||
@end
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@
|
|||
- (BOOL)tryLock:(NSError **)error {
|
||||
return [self lockWithBlockUntilAvailable:NO error:error];
|
||||
}
|
||||
- (BOOL)lockAndExecute:(void (^)())block error:(NSError **)error {
|
||||
- (BOOL)lockAndExecute:(void (^)(void))block error:(NSError **)error {
|
||||
if (![self lockWithBlockUntilAvailable:YES error:error]) {
|
||||
return NO;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue