VirtualBox

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


Ignore:
Timestamp:
May 12, 2023 12:21:58 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157370
Message:

*: Mark functions as static if not used outside of a given compilation unit. Enables the compiler to optimize inlining, reduces the symbol tables, exposes unused functions and in some rare cases exposes mismtaches between function declarations and definitions, but most importantly reduces the number of parfait reports for the extern-function-no-forward-declaration category. This should not result in any functional changes, bugref:3409

Location:
trunk/src/VBox/Devices/Network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevVirtioNet.cpp

    r98121 r99775  
    15801580 * @param   fOn             New LED state.
    15811581 */
    1582 void virtioNetR3SetReadLed(PVIRTIONETR3 pThisR3, bool fOn)
     1582static void virtioNetR3SetReadLed(PVIRTIONETR3 pThisR3, bool fOn)
    15831583{
    15841584    if (fOn)
     
    15951595 * @param   fOn            New LED state.
    15961596 */
    1597 void virtioNetR3SetWriteLed(PVIRTIONETR3 pThisR3, bool fOn)
     1597static void virtioNetR3SetWriteLed(PVIRTIONETR3 pThisR3, bool fOn)
    15981598{
    15991599    if (fOn)
  • trunk/src/VBox/Devices/Network/DrvCloudTunnel.cpp

    r98103 r99775  
    6060# define INVALID_SOCKET -1
    6161# define SOCKET_ERROR   -1
    62  int WSAGetLastError() { return errno; }
     62DECLINLINE(int) WSAGetLastError() { return errno; }
    6363#endif
    6464
     
    12651265
    12661266
    1267 DECL_NOTHROW(void) drvCloudTunnelSshLogCallback(int priority, const char *function, const char *buffer, void *userdata)
     1267static DECL_NOTHROW(void) drvCloudTunnelSshLogCallback(int priority, const char *function, const char *buffer, void *userdata)
    12681268{
    12691269    PDRVCLOUDTUNNEL pThis = (PDRVCLOUDTUNNEL)userdata;
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r99739 r99775  
    972972
    973973
     974#if 0 /* unused */
    974975/**
    975976 * Function called by slirp to check if it's possible to feed incoming data to the network port.
     
    983984}
    984985
    985 void slirp_push_recv_thread(void *pvUser)
     986static void slirp_push_recv_thread(void *pvUser)
    986987{
    987988    PDRVNAT pThis = (PDRVNAT)pvUser;
     
    989990    drvNATUrgRecvWakeup(pThis->pDrvIns, pThis->pUrgRecvThread);
    990991}
     992#endif
    991993
    992994void slirp_urg_output(void *pvUser, struct mbuf *m, const uint8_t *pu8Buf, int cb)
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