VirtualBox

Changeset 15245 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Dec 10, 2008 1:04:31 PM (16 years ago)
Author:
vboxsync
Message:

compile fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/debug.c

    r15244 r15245  
    255255                    void *pvUser)
    256256{
     257    size_t cb = 0;
     258#ifdef RT_OS_WINDOWS
    257259    WSANETWORKEVENTS *pNetworkEvents = (WSANETWORKEVENTS*)pvValue;
    258     size_t cb;
    259260    bool fDelim = false;
    260261
    261262    AssertReturn(strcmp(pszType, "natwinnetevents") == 0, 0);
    262263
    263     cb  = RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "events=%02x (", pNetworkEvents->lNetworkEvents);
    264 #define DO_BIT(bit) \
     264    cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "events=%02x (", pNetworkEvents->lNetworkEvents);
     265# define DO_BIT(bit) \
    265266    if (pNetworkEvents->lNetworkEvents & FD_ ## bit) \
    266267    { \
     
    276277    DO_BIT(CLOSE);
    277278    DO_BIT(QOS);
    278 #undef DO_BIT
     279# undef DO_BIT
    279280    cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, ")");
     281#endif
    280282    return cb;
    281283}
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