Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/fmtmsg.h
          +++ new/usr/src/head/fmtmsg.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  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  /*      Copyright (c) 1988 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25   25  
  26   26  /*
       27 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       28 + *
  27   29   * Copyright 1996-2003 Sun Microsystems, Inc.  All rights reserved.
  28   30   * Use is subject to license terms.
  29   31   */
  30   32  
  31   33  #ifndef _FMTMSG_H
  32   34  #define _FMTMSG_H
  33   35  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.3   */
  35      -
  36   36  #include <sys/feature_tests.h>
  37   37  
  38   38  #ifdef  __cplusplus
  39   39  extern "C" {
  40   40  #endif
  41   41  
  42   42  /*
  43   43   * fmtmsg.h
  44   44   *
  45   45   *      The <fmtmsg.h> header file contains the definitions needed
↓ open down ↓ 144 lines elided ↑ open up ↑
 190  190   */
 191  191  
 192  192  #define MM_NOTOK        -1
 193  193  #define MM_OK           0x00
 194  194  #define MM_NOMSG        0x01
 195  195  #define MM_NOCON        0x04
 196  196  
 197  197  /* Function definition */
 198  198  
 199  199  #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
 200      -#if defined(__STDC__)
 201  200  int     addseverity(int, const char *);
 202      -#else /* __STDC__ */
 203      -int     addseverity();
 204      -#endif  /* __STDC__ */
 205  201  #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
 206  202  
 207      -#if defined(__STDC__)
 208  203  int     fmtmsg(long, const char *, int, const char *, const char *,
 209  204              const char *);
 210      -#else /* __STDC__ */
 211      -int     fmtmsg();
 212      -#endif  /* __STDC__ */
 213  205  
 214  206  #ifdef  __cplusplus
 215  207  }
 216  208  #endif
 217  209  
 218  210  #endif  /* _FMTMSG_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX