Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/ethernet.h
          +++ new/usr/src/uts/common/sys/ethernet.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
       22 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       23 + *
  22   24   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   25   * Use is subject to license terms.
  24   26   */
  25   27  
  26   28  /*
  27   29   * ethernet.h header for common Ethernet declarations.
  28   30   */
  29   31  
  30   32  #ifndef _SYS_ETHERNET_H
  31   33  #define _SYS_ETHERNET_H
↓ open down ↓ 102 lines elided ↑ open up ↑
 134  136          ((short *)b)[1] = ((short *)a)[1]; ((short *)b)[2] = ((short *)a)[2]; }
 135  137  #else
 136  138  #define ether_copy(a, b) (bcopy((caddr_t)a, (caddr_t)b, 6))
 137  139  #endif
 138  140  
 139  141  #ifdef  _KERNEL
 140  142  extern int localetheraddr(struct ether_addr *, struct ether_addr *);
 141  143  extern char *ether_sprintf(struct ether_addr *);
 142  144  extern int ether_aton(char *, uchar_t *);
 143  145  #else   /* _KERNEL */
 144      -#ifdef  __STDC__
 145  146  extern char *ether_ntoa(const struct ether_addr *);
 146  147  extern struct ether_addr *ether_aton(const char *);
 147  148  extern int ether_ntohost(char *, const struct ether_addr *);
 148  149  extern int ether_hostton(const char *, struct ether_addr *);
 149  150  extern int ether_line(const char *, struct ether_addr *, char *);
 150      -#else   /* __STDC__ */
 151      -extern char *ether_ntoa();
 152      -extern struct ether_addr *ether_aton();
 153      -extern int ether_ntohost();
 154      -extern int ether_hostton();
 155      -extern int ether_line();
 156      -#endif  /* __STDC__ */
 157  151  #endif  /* _KERNEL */
 158  152  
 159  153  #ifdef  __cplusplus
 160  154  }
 161  155  #endif
 162  156  
 163  157  #endif  /* _SYS_ETHERNET_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX