From 2978cd03129190ba282454cbb7a41500f227a044 Mon Sep 17 00:00:00 2001 From: zhanglining Date: Thu, 2 Nov 2017 10:07:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RealReachability/Connection/LocalConnection.h | 1 - 1 file changed, 1 deletion(-) diff --git a/RealReachability/Connection/LocalConnection.h b/RealReachability/Connection/LocalConnection.h index 3ae6bd3..ed8c9a2 100644 --- a/RealReachability/Connection/LocalConnection.h +++ b/RealReachability/Connection/LocalConnection.h @@ -37,7 +37,6 @@ typedef NS_ENUM(NSInteger, LocalConnectionStatus) /** * Start observering local connection status. * - * @return success or failure. YES->success */ - (void)startNotifier; From c0cc57a56eeefea942ccde155bef290bc0c54311 Mon Sep 17 00:00:00 2001 From: zhanglining Date: Thu, 2 Nov 2017 14:18:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RealReachability/Ping/PingFoundation.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/RealReachability/Ping/PingFoundation.h b/RealReachability/Ping/PingFoundation.h index 9d93b4a..0d0b7a2 100644 --- a/RealReachability/Ping/PingFoundation.h +++ b/RealReachability/Ping/PingFoundation.h @@ -276,10 +276,10 @@ struct ICMPHeader }; typedef struct ICMPHeader ICMPHeader; -check_compile_time(sizeof(ICMPHeader) == 8); -check_compile_time(offsetof(ICMPHeader, type) == 0); -check_compile_time(offsetof(ICMPHeader, code) == 1); -check_compile_time(offsetof(ICMPHeader, checksum) == 2); -check_compile_time(offsetof(ICMPHeader, identifier) == 4); -check_compile_time(offsetof(ICMPHeader, sequenceNumber) == 6); +__Check_Compile_Time(sizeof(ICMPHeader) == 8); +__Check_Compile_Time(offsetof(ICMPHeader, type) == 0); +__Check_Compile_Time(offsetof(ICMPHeader, code) == 1); +__Check_Compile_Time(offsetof(ICMPHeader, checksum) == 2); +__Check_Compile_Time(offsetof(ICMPHeader, identifier) == 4); +__Check_Compile_Time(offsetof(ICMPHeader, sequenceNumber) == 6);