Print this page
5863 psiginfo arguments should be const
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>

Split Close
Expand all
Collapse all
          --- old/usr/src/head/siginfo.h
          +++ new/usr/src/head/siginfo.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 2015 Circonus, Inc.  All rights reserved.
       24 + */
       25 +/*
  23   26   * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  24   27   */
  25   28  /*      Copyright (c) 1988 AT&T */
  26   29  /*        All Rights Reserved   */
  27   30  
  28   31  #ifndef _SIGINFO_H
  29   32  #define _SIGINFO_H
  30   33  
  31   34  #include <sys/types.h>
  32   35  #include <sys/siginfo.h>
  33   36  
  34   37  #ifdef  __cplusplus
  35   38  extern "C" {
  36   39  #endif
  37   40  
  38   41  struct siginfolist {
  39   42          int nsiginfo;
  40   43          char **vsiginfo;
  41   44  };
  42   45  
  43      -extern const char * _sys_illlist[];
  44      -extern const char * _sys_fpelist[];
  45      -extern const char * _sys_segvlist[];
  46      -extern const char * _sys_buslist[];
  47      -extern const char * _sys_traplist[];
  48      -extern const char * _sys_cldlist[];
       46 +extern const char *_sys_illlist[];
       47 +extern const char *_sys_fpelist[];
       48 +extern const char *_sys_segvlist[];
       49 +extern const char *_sys_buslist[];
       50 +extern const char *_sys_traplist[];
       51 +extern const char *_sys_cldlist[];
  49   52  extern const struct siginfolist *_sys_siginfolistp;
  50   53  #define _sys_siginfolist        _sys_siginfolistp
  51   54  
  52   55  extern void psignal(int, const char *);
  53      -extern void psiginfo(siginfo_t *, char *);
       56 +extern void psiginfo(const siginfo_t *, const char *);
  54   57  
  55   58  #ifdef  __cplusplus
  56   59  }
  57   60  #endif
  58   61  
  59   62  #endif  /* _SIGINFO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX