Print this page
make: fix GCC warnings

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/include/mksh/misc.h
          +++ new/usr/src/cmd/make/include/mksh/misc.h
↓ open down ↓ 24 lines elided ↑ open up ↑
  25   25   * Use is subject to license terms.
  26   26   */
  27   27  
  28   28  #include <mksh/defs.h>
  29   29  
  30   30  extern void     append_char(wchar_t from, register String to);
  31   31  extern Property append_prop(register Name target, register Property_id type);
  32   32  extern void     append_string(register wchar_t *from, register String to, register int length);
  33   33  extern void     enable_interrupt(register void (*handler) (int));
  34   34  extern char     *errmsg(int errnum);
  35      -extern void     fatal_mksh(char * message, ...);
  36      -extern void     fatal_reader_mksh(char * pattern, ...);
       35 +extern void     fatal_mksh(const char *message, ...);
       36 +extern void     fatal_reader_mksh(const char *pattern, ...);
  37   37  extern char     *get_current_path_mksh(void);
  38   38  extern Property get_prop(register Property start, register Property_id type);
  39   39  extern char     *getmem(register int size);
  40   40  extern Name     getname_fn(wchar_t *name, register int len, register Boolean dont_enter, register Boolean * foundp = NULL);
  41   41  extern void     store_name(Name name);
  42   42  extern void     free_name(Name name);
  43   43  extern void     handle_interrupt_mksh(int);
  44   44  extern Property maybe_append_prop(register Name target, register Property_id type);
  45   45  extern void     retmem(wchar_t *p);
  46   46  extern void     retmem_mb(caddr_t p);
  47   47  extern void     setup_char_semantics(void);
  48   48  extern void     setup_interrupt(register void (*handler) (int));
  49   49  extern void     warning_mksh(char * message, ...);
  50   50  
  51   51  extern void     append_string(register char *from, register String to, register int length);
  52   52  extern wchar_t  *get_wstring(char * from);
  53   53  
  54   54  
  55   55  #endif
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX