From 79470d014b467f01b0e7c5b63ab6c86b22dec8db Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Tue, 19 Nov 2024 14:29:11 -0800 Subject: [PATCH] Include names in argument lists (#1408) --- .../darwin/cupertino_http/Sources/cupertino_http/utils.h | 2 +- .../darwin/cupertino_http/Sources/cupertino_http/utils.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/cupertino_http/darwin/cupertino_http/Sources/cupertino_http/utils.h b/pkgs/cupertino_http/darwin/cupertino_http/Sources/cupertino_http/utils.h index 3dd8b2ae02..490b1d70b7 100644 --- a/pkgs/cupertino_http/darwin/cupertino_http/Sources/cupertino_http/utils.h +++ b/pkgs/cupertino_http/darwin/cupertino_http/Sources/cupertino_http/utils.h @@ -7,7 +7,7 @@ #error "This file must be compiled with ARC enabled" #endif -typedef void (^_DidFinish)(void *, NSURLSession *session, +typedef void (^_DidFinish)(void *closure, NSURLSession *session, NSURLSessionDownloadTask *downloadTask, NSURL *location); typedef void (^_DidFinishWithLock)(NSCondition *lock, NSURLSession *session, diff --git a/pkgs/cupertino_http/darwin/cupertino_http/Sources/cupertino_http/utils.m b/pkgs/cupertino_http/darwin/cupertino_http/Sources/cupertino_http/utils.m index 4f17a3415e..bad263c96c 100644 --- a/pkgs/cupertino_http/darwin/cupertino_http/Sources/cupertino_http/utils.m +++ b/pkgs/cupertino_http/darwin/cupertino_http/Sources/cupertino_http/utils.m @@ -1,7 +1,7 @@ #import "utils.h" _DidFinish adaptFinishWithLock(_DidFinishWithLock block) { - return ^void(void *, NSURLSession *session, + return ^void(void *closure, NSURLSession *session, NSURLSessionDownloadTask *downloadTask, NSURL *location) { NSCondition *lock = [[NSCondition alloc] init]; [lock lock];