Skip to content

Commit 6e6bf50

Browse files
committed
Specify variable type in CUserNotifications
Specifying a variable without a type is not Standard C, even for sizeof.
1 parent 5a80967 commit 6e6bf50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CoreFoundation/AppServices.subproj/CFUserNotification.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ static SInt32 _CFUserNotificationSendRequest(CFAllocatorRef allocator, CFStringR
190190

191191
#if TARGET_OS_OSX
192192
const char *namebuffer = NOTIFICATION_PORT_NAME_MAC;
193-
const nameLen = sizeof(NOTIFICATION_PORT_NAME_MAC);
193+
const CFIndex nameLen = sizeof(NOTIFICATION_PORT_NAME_MAC);
194194
#else
195195
const char *namebuffer = NOTIFICATION_PORT_NAME_IOS;
196-
const nameLen = sizeof(NOTIFICATION_PORT_NAME_IOS);
196+
const CFIndex nameLen = sizeof(NOTIFICATION_PORT_NAME_IOS);
197197
#endif
198198

199199
if (sessionID) {

0 commit comments

Comments
 (0)