VirtualBox

Changeset 68544 in vbox for trunk


Ignore:
Timestamp:
Aug 30, 2017 4:24:28 PM (7 years ago)
Author:
vboxsync
Message:

NAT/Net: Drop #ifdef LOG_ENABLED and use RT_NOREF on a variables used
only in DPRINTF(). This simplifies switching DPRINTFs to LogRel's.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/fwtcp.c

    r63280 r68544  
    240240
    241241
    242 #ifdef LOG_ENABLED
    243242    if (ss.ss_family == PF_INET) {
    244243        struct sockaddr_in *peer4 = (struct sockaddr_in *)&ss;
     244        RT_NOREF(peer4);
    245245        DPRINTF(("<--- TCP %RTnaipv4:%d\n",
    246246                 peer4->sin_addr.s_addr, ntohs(peer4->sin_port)));
     
    248248    else { /* PF_INET6 */
    249249        struct sockaddr_in6 *peer6 = (struct sockaddr_in6 *)&ss;
     250        RT_NOREF(peer6);
    250251        DPRINTF(("<--- TCP %RTnaipv6:%d\n",
    251252                 &peer6->sin6_addr, ntohs(peer6->sin6_port)));
    252253    }
    253 #endif
    254254
    255255    pxtcp = pxtcp_create_forwarded(newsock);
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