VirtualBox

Ignore:
Timestamp:
Dec 8, 2008 4:05:46 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
40514
Message:

slirp: register type specifier only once

File:
1 edited

Legend:

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

    r15090 r15116  
    238238    int rc = VINF_SUCCESS;
    239239
    240     rc = RTStrFormatTypeRegister("IP4", print_ipv4_address, NULL);
    241     AssertRC(rc);
     240    static int g_fFormatRegistered;
     241
     242    if (!g_fFormatRegistered)
     243    {
     244        /*
     245         * XXX Move this to IPRT using RTNETADDRIPV4. Use the specifier %RNAipv4.
     246         */
     247        rc = RTStrFormatTypeRegister("IP4", print_ipv4_address, NULL);
     248        AssertRC(rc);
     249    }
    242250
    243251    return rc;
Note: See TracChangeset for help on using the changeset viewer.

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