Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/auth_attr.h
          +++ new/usr/src/head/auth_attr.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>
  23   24   * Copyright (c) 1999 by Sun Microsystems, Inc. All rights reserved.
  24   25   */
  25   26  
  26   27  #ifndef _AUTH_ATTR_H
  27   28  #define _AUTH_ATTR_H
  28   29  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   30  #ifdef  __cplusplus
  32   31  extern "C" {
  33   32  #endif
  34   33  
  35   34  #include <sys/types.h>
  36   35  #include <secdb.h>
  37   36  
  38   37  /*
  39   38   * Some macros used internally by the nsswitch code
  40   39   */
↓ open down ↓ 42 lines elided ↑ open up ↑
  83   82   */
  84   83  typedef struct authattr_s {
  85   84          char   *name;           /* authorization name */
  86   85          char   *res1;           /* reserved for future use */
  87   86          char   *res2;           /* reserved for future use */
  88   87          char   *short_desc;     /* short description */
  89   88          char   *long_desc;      /* long description */
  90   89          kva_t  *attr;           /* array of key-value pair attributes */
  91   90  } authattr_t;
  92   91  
  93      -#ifdef __STDC__
  94   92  extern authattr_t *getauthnam(const char *);
  95   93  extern authattr_t *getauthattr(void);
  96   94  extern void setauthattr(void);
  97   95  extern void endauthattr(void);
  98   96  extern void free_authattr(authattr_t *);
  99   97  extern int chkauthattr(const char *, const char *);
 100   98  
 101      -#else                           /* not __STDC__ */
 102      -
 103      -extern authattr_t *getauthnam();
 104      -extern authattr_t *getauthattr();
 105      -extern void setauthattr();
 106      -extern void endauthattr();
 107      -extern void free_authattr();
 108      -extern int chkauthattr();
 109      -#endif
 110      -
 111   99  #ifdef  __cplusplus
 112  100  }
 113  101  #endif
 114  102  
 115  103  #endif  /* _AUTH_ATTR_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX