Changeset 26252 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Feb 5, 2010 12:26:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/tcp.cpp
r25724 r26252 422 422 * Set socket family, address and port. 423 423 */ 424 struct sockaddr_in LocalAddr = {0}; 424 struct sockaddr_in LocalAddr; 425 RT_ZERO(LocalAddr); 425 426 LocalAddr.sin_family = AF_INET; 426 427 LocalAddr.sin_port = htons(uPort); … … 567 568 * Accept connection. 568 569 */ 569 struct sockaddr_in RemoteAddr = {0}; 570 struct sockaddr_in RemoteAddr; 571 RT_ZERO(RemoteAddr); 570 572 socklen_t cbRemoteAddr = sizeof(RemoteAddr); 571 573 RTSOCKET Socket = accept(SockServer, (struct sockaddr *)&RemoteAddr, &cbRemoteAddr); … … 956 958 if (Sock != -1) 957 959 { 958 struct sockaddr_in InAddr = {0}; 960 struct sockaddr_in InAddr; 961 RT_ZERO(InAddr); 959 962 InAddr.sin_family = AF_INET; 960 963 InAddr.sin_port = htons(uPort);
Note:
See TracChangeset
for help on using the changeset viewer.