儲存庫 vbox 的更動 63381
- 時間撮記:
- 2016-8-12 下午06:40:16 (8 年 以前)
- 位置:
- trunk/src/VBox/NetworkServices/NAT
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/NetworkServices/NAT/proxy.c
r62481 r63381 135 135 { 136 136 const int error = (int)(intptr_t)pvValue; 137 size_t cb = 0; 138 139 const char *msg = NULL; 137 138 const char *msg; 140 139 char buf[128]; 141 140 … … 148 147 149 148 /* make sure return type mismatch is caught */ 149 buf[0] = '\0'; 150 150 #if defined(RT_OS_LINUX) && defined(_GNU_SOURCE) 151 151 msg = strerror_r(error, buf, sizeof(buf)); 152 152 #else 153 { 154 int status = strerror_r(error, buf, sizeof(buf)); 155 msg = buf; 156 } 153 strerror_r(error, buf, sizeof(buf)); 154 msg = buf; 157 155 #endif 158 156 return RTStrFormat(pfnOutput, pvArgOutput, NULL, NULL, "%s", msg); -
trunk/src/VBox/NetworkServices/NAT/pxping.c
r62481 r63381 557 557 #define USE_DF_OPTION(_Optname) \ 558 558 const int dfopt = _Optname; \ 559 const char * const dfoptname = #_Optname; 559 const char * const dfoptname = #_Optname; NOREF(dfoptname) 560 560 #if defined(RT_OS_LINUX) 561 561 USE_DF_OPTION(IP_MTU_DISCOVER); … … 1247 1247 u16_t oipsum; 1248 1248 u32_t sum; 1249 RT_NOREF(peer); 1249 1250 1250 1251 iph = (struct ip_hdr *)pollmgr_udpbuf; … … 1348 1349 u16_t guest_id; 1349 1350 u32_t sum; 1351 RT_NOREF(peer); 1350 1352 1351 1353 iph = (struct ip_hdr *)pollmgr_udpbuf; … … 1512 1514 struct cmsghdr *cmh; 1513 1515 struct sockaddr_in6 sin6; 1514 socklen_t salen = sizeof(sin6);1516 /* socklen_t salen = sizeof(sin6); - unused */ 1515 1517 struct icmp6_echo_hdr *icmph; 1516 1518 struct in6_pktinfo *pktinfo; 1517 1519 int hopl, tclass; 1520 #ifdef RT_OS_WINDOWS 1518 1521 int status; 1522 #endif 1519 1523 1520 1524 /*
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器