VirtualBox

儲存庫 vbox 的更動 40423


忽略:
時間撮記:
2012-3-11 上午03:22:22 (13 年 以前)
作者:
vboxsync
訊息:

NAT: warnings [-Wunused-macros]

位置:
trunk/src/VBox/Devices/Network/slirp
檔案:
修改 10 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Network/slirp/dnsproxy/dnsproxy.c

    r39894 r40423  
    7979}
    8080
    81 #else
     81#else /* VBOX */
    8282
    8383# define RD(x) (*(x + 2) & 0x01)
    84 # define MAX_BUFSPACE 512
    8584
    8685# define QUERYID queryid++
  • trunk/src/VBox/Devices/Network/slirp/ip_icmp.c

    r40421 r40423  
    5454 */
    5555
    56 #define NEED_SOME_m_getjcl
    5756#include "slirp.h"
    5857#include "ip_icmp.h"
  • trunk/src/VBox/Devices/Network/slirp/libalias/alias_db.c

    r39101 r40423  
    327327#define LINK_PERMANENT             0x04
    328328#define LINK_PARTIALLY_SPECIFIED   0x03 /* logical-or of first two bits */
    329 #define LINK_UNFIREWALLED          0x08
    330 
    331329#ifndef VBOX
     330# define LINK_UNFIREWALLED          0x08 /* This macro definition isn't used in this revision of libalias */
     331
    332332    int     timestamp;  /* Time link was last accessed         */
    333333    int     expire_time;    /* Expire time for link                */
    334 #else
     334#else /* VBOX */
    335335    unsigned int timestamp;  /* Time link was last accessed         */
    336336    unsigned int expire_time;    /* Expire time for link                */
  • trunk/src/VBox/Devices/Network/slirp/libalias/alias_mod.c

    r26495 r40423  
    113113}
    114114
    115 #else
    116 #define LIBALIAS_RWLOCK_INIT() ;
    117 #define LIBALIAS_RWLOCK_DESTROY()   ;
    118 #define LIBALIAS_WLOCK_ASSERT() ;
    119 #define LIBALIAS_RLOCK() ;
    120 #define LIBALIAS_RUNLOCK() ;
    121 #define LIBALIAS_WLOCK() ;
    122 #define LIBALIAS_WUNLOCK() ;
    123 #define _handler_chain_init() ;
    124 #define _handler_chain_destroy() ;
     115#else /* VBOX */
     116# define LIBALIAS_WLOCK_ASSERT() ;
     117# define LIBALIAS_RLOCK() ;
     118# define LIBALIAS_RUNLOCK() ;
     119# define LIBALIAS_WLOCK() ;
     120# define LIBALIAS_WUNLOCK() ;
     121# define _handler_chain_init() ;
     122# define _handler_chain_destroy() ;
    125123#endif
    126124
  • trunk/src/VBox/Devices/Network/slirp/libalias/alias_proxy.c

    r24223 r40423  
    8787# include "alias.h"     /* Public API functions for libalias */
    8888# include "alias_local.h"   /* Functions used by alias*.c */
    89 # define isspace(ch)    RT_C_IS_SPACE(ch)
    9089# define tolower(ch)    RT_C_TO_LOWER(ch)
    9190#endif /* VBOX */
  • trunk/src/VBox/Devices/Network/slirp/misc.c

    r40204 r40423  
    2525 */
    2626
    27 #define WANT_SYS_IOCTL_H
    2827#include <slirp.h>
    2928#include "zone.h"
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r40291 r40423  
    114114           || !(polls[(so)->so_poll_index].revents & POLLNVAL)))
    115115
    116   /* specific for Unix API */
    117 # define DO_UNIX_CHECK_FD_SET(so, events, fdset) DO_CHECK_FD_SET((so), (events), fdset)
    118116  /* specific for Windows Winsock API */
    119117# define DO_WIN_CHECK_FD_SET(so, events, fdset) 0
     
    129127# define closefds_poll   (POLLHUP)
    130128# define rderr_poll      (POLLERR)
    131 # define rdhup_poll      (POLLHUP)
    132 # define nval_poll       (POLLNVAL)
     129# if 0 /* unused yet */
     130#  define rdhup_poll      (POLLHUP)
     131#  define nval_poll       (POLLNVAL)
     132# endif
    133133
    134134# define ICMP_ENGAGE_EVENT(so, fdset)              \
     
    206206#ifdef RT_OS_WINDOWS
    207207# define WIN_TCP_ENGAGE_EVENT2(so, fdset, fdset2) TCP_ENGAGE_EVENT2(so, fdset1, fdset2)
    208 #else
    209 # define WIN_TCP_ENGAGE_EVENT2(so, fdset, fdset2) do{}while(0)
    210208#endif
    211209
     
    224222#define WIN_CHECK_FD_SET(so, events, set) \
    225223    (DO_WIN_CHECK_FD_SET((so), (events), set))
    226 
    227 #define UNIX_CHECK_FD_SET(so, events, set) \
    228     (DO_UNIX_CHECK_FD_SET(so, events, set))
    229224
    230225/*
  • trunk/src/VBox/Devices/Network/slirp/socket.c

    r40120 r40423  
    2525 */
    2626
    27 #define WANT_SYS_IOCTL_H
    2827#include <slirp.h>
    2928#include "ip_icmp.h"
  • trunk/src/VBox/Devices/Network/slirp/tcp_input.c

    r39556 r40423  
    6666
    6767
    68 #define TCP_PAWS_IDLE   (24 * 24 * 60 * 60 * PR_SLOWHZ)
     68#if 0 /* code using this macroses is commented out */
     69# define TCP_PAWS_IDLE   (24 * 24 * 60 * 60 * PR_SLOWHZ)
    6970
    7071/* for modulo comparisons of timestamps */
    71 #define TSTMP_LT(a, b)   ((int)((a)-(b)) < 0)
    72 #define TSTMP_GEQ(a, b)  ((int)((a)-(b)) >= 0)
     72# define TSTMP_LT(a, b)   ((int)((a)-(b)) < 0)
     73# define TSTMP_GEQ(a, b)  ((int)((a)-(b)) >= 0)
     74#endif
    7375
    7476#ifndef TCP_ACK_HACK
  • trunk/src/VBox/Devices/Network/slirp/tcp_subr.c

    r40422 r40423  
    6262 */
    6363
    64 #define WANT_SYS_IOCTL_H
    6564#include <slirp.h>
    6665
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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