Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/dktp/cm.h
          +++ new/usr/src/uts/common/sys/dktp/cm.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright (c) 1992 Sun Microsystems, Inc.  All Rights Reserved.
  24   26   */
  25   27  
  26   28  #ifndef _SYS_DKTP_CM_H
  27   29  #define _SYS_DKTP_CM_H
  28   30  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   31  #include <sys/types.h>
  32   32  #ifdef  _KERNEL
  33   33  #include <sys/conf.h>
  34   34  #include <sys/stat.h>
  35   35  #include <sys/errno.h>
  36   36  #include <sys/kmem.h>
  37   37  #include <sys/fcntl.h>
  38   38  #include <sys/open.h>
  39   39  #include <sys/sysmacros.h>
  40   40  #include <sys/ddi.h>
  41   41  #include <sys/sunddi.h>
  42   42  #endif  /* _KERNEL */
  43   43  
  44   44  #ifdef  __cplusplus
  45   45  extern "C" {
  46   46  #endif
  47   47  
  48   48  #ifdef  _KERNEL
  49   49  
  50   50  #ifndef _SYS_SCSI_SCSI_H
  51      -#ifdef  __STDC__
  52   51  typedef void *  opaque_t;
  53      -#else   /* __STDC__ */
  54      -typedef char *  opaque_t;
  55      -#endif  /* __STDC__ */
  56   52  #endif
  57   53  
  58   54  #define PRF             prom_printf
  59   55  
  60   56  #define SET_BP_SEC(bp, X) ((bp)->b_private = (void *) (X))
  61   57  #define GET_BP_SEC(bp) ((daddr_t)(bp)->b_private)
  62   58  
  63   59  #endif  /* _KERNEL */
  64   60  
  65   61  #ifdef  __cplusplus
  66   62  }
  67   63  #endif
  68   64  
  69   65  #endif  /* _SYS_DKTP_CM_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX