VirtualBox

Changeset 26252 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Feb 5, 2010 12:26:14 AM (15 years ago)
Author:
vboxsync
Message:

tcp.cpp: gcc warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/tcp.cpp

    r25724 r26252  
    422422             * Set socket family, address and port.
    423423             */
    424             struct sockaddr_in LocalAddr = {0};
     424            struct sockaddr_in LocalAddr;
     425            RT_ZERO(LocalAddr);
    425426            LocalAddr.sin_family = AF_INET;
    426427            LocalAddr.sin_port = htons(uPort);
     
    567568         * Accept connection.
    568569         */
    569         struct sockaddr_in  RemoteAddr   = {0};
     570        struct sockaddr_in  RemoteAddr;
     571        RT_ZERO(RemoteAddr);
    570572        socklen_t           cbRemoteAddr = sizeof(RemoteAddr);
    571573        RTSOCKET Socket = accept(SockServer, (struct sockaddr *)&RemoteAddr, &cbRemoteAddr);
     
    956958    if (Sock != -1)
    957959    {
    958         struct sockaddr_in InAddr = {0};
     960        struct sockaddr_in InAddr;
     961        RT_ZERO(InAddr);
    959962        InAddr.sin_family = AF_INET;
    960963        InAddr.sin_port = htons(uPort);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette