Print this page
2976 remove useless offsetof() macros

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ipf/netinet/ip_fil.h
          +++ new/usr/src/uts/common/inet/ipf/netinet/ip_fil.h
↓ open down ↓ 664 lines elided ↑ open up ↑
 665  665  #define fr_mflx         fr_mip.fi_flx
 666  666  #define fr_ifname       fr_ifnames[0]
 667  667  #define fr_oifname      fr_ifnames[2]
 668  668  #define fr_ifa          fr_ifas[0]
 669  669  #define fr_oifa         fr_ifas[2]
 670  670  #define fr_tif          fr_tifs[0]
 671  671  #define fr_rif          fr_tifs[1]
 672  672  
 673  673  #define FR_NOLOGTAG     0
 674  674  
 675      -#ifndef offsetof
 676      -#define offsetof(t,m)   (size_t)((&((t *)0)->m))
 677      -#endif
 678  675  #define FR_CMPSIZ       (sizeof(struct frentry) - \
 679  676                           offsetof(struct frentry, fr_func))
 680  677  
 681  678  /*
 682  679   * fr_type
 683  680   */
 684  681  #define FR_T_NONE       0
 685  682  #define FR_T_IPF        1       /* IPF structures */
 686  683  #define FR_T_BPFOPC     2       /* BPF opcode */
 687  684  #define FR_T_CALLFUNC   3       /* callout to function in fr_func only */
↓ open down ↓ 932 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX