VirtualBox

Ignore:
Timestamp:
Jul 26, 2010 8:59:43 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64049
Message:

RT_LIKELY misusage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp_state.h

    r30016 r31097  
    469469        rc = RTReqCallVoid((data)->pReqQueue, &pReq, 0 /*cMillies*/,    \
    470470                           (PFNRT)tcp_output 2, data, sotcb);           \
    471         if (RT_LIKELY(rc) == VERR_TIMEOUT)                              \
     471        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    472472        {                                                               \
    473473            SOCKET_UNLOCK(so);                                          \
     
    496496        rc = RTReqCallVoid((data)->pReqQueue, &pReq, 0 /*cMillies*/,    \
    497497                           (PFNRT)tcp_connect, 2, data, so);            \
    498         if (RT_LIKELY(rc) == VERR_TIMEOUT)                              \
     498        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    499499        {                                                               \
    500500            SOCKET_UNLOCK(so);                                          \
     
    515515                           (PFNRT)soread_queue, 4,                      \
    516516                           data, so, ifclose, &(ret));                  \
    517         if (RT_LIKELY(rc) == VERR_TIMEOUT)                              \
     517        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    518518        {                                                               \
    519519            SOCKET_UNLOCK(so);                                          \
     
    533533        rc = RTReqCall((data)->pReqQueue, &pReq, 0 /*cMillies*/,        \
    534534                       (PFNRT)sowrite, 2, data, so);                    \
    535         if (RT_LIKELY(rc) == VERR_TIMEOUT)                              \
     535        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    536536        {                                                               \
    537537            SOCKET_UNLOCK(so);                                          \
     
    551551        rc = RTReqCallVoid((data)->pReqQueue, &pReq, 0 /*cMillies */,   \
    552552                           (PFNRT)sorecvfrom, 2, data, so);             \
    553         if (RT_LIKELY(rc) == VERR_TIMEOUT)                              \
     553        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    554554        {                                                               \
    555555            SOCKET_UNLOCK(so);                                          \
     
    569569        rc = RTReqCallVoid((data)->pReqQueue, &pReq, 0 /* cMillies*/,   \
    570570                           (PFNRT)udp_detach, 2, data, so);             \
    571         if (RT_LIKELY(rc) == VERR_TIMEOUT)                              \
     571        if (RT_LIKELY(rc == VERR_TIMEOUT))                              \
    572572        {                                                               \
    573573            SOCKET_UNLOCK(so);                                          \
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