[BACK]Return to err.h CVS log [TXT][DIR] Up to [local] / src / include

Diff for /src/include/err.h between version 1.10 and 1.11

version 1.10, 2006/01/06 18:53:04 version 1.11, 2014/04/21 16:13:24
Line 35 
Line 35 
 #ifndef _ERR_H_  #ifndef _ERR_H_
 #define _ERR_H_  #define _ERR_H_
   
 /*  
  * Don't use va_list in the err/warn prototypes.   Va_list is typedef'd in two  
  * places (<machine/varargs.h> and <machine/stdarg.h>), so if we include one  
  * of them here we may collide with the utility's includes.  It's unreasonable  
  * for utilities to have to include one of them to include err.h, so we get  
  * __va_list from <machine/_types.h> and use it.  
  */  
 #include <sys/cdefs.h>  #include <sys/cdefs.h>
 #include <machine/_types.h>  #include <machine/_types.h>             /* for __va_list */
   
 __BEGIN_DECLS  __BEGIN_DECLS
   
Line 65 
Line 58 
                         __attribute__((__format__ (printf, 1, 0)));                          __attribute__((__format__ (printf, 1, 0)));
   
 /*  /*
  * The _* versions are for use in library functions so user-defined   * The _* versions are for use inside libc only and will go away
  * versions of err*,warn* do not get used.  
  */   */
 __dead void     _err(int, const char *, ...)  __dead void     _err(int, const char *, ...)
                         __attribute__((__format__ (printf, 2, 3)));                          __attribute__((__format__ (printf, 2, 3)));

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11