Fixed bitrot in K&R support (1 missing __P(()) defeated the point of 7

non-missing ones).

Removed private declaration of __P(()) while I'm here.  Include
<sys/cdefs.h> to get the system definition.  The privation declaration
would break the system definition if it were different.
This commit is contained in:
Bruce Evans 2000-01-14 18:28:23 +00:00
parent f21a2e3673
commit c807777a43
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55984

View File

@ -37,24 +37,19 @@
*/
/* $Id: com_err.h,v 1.3 1998/05/02 20:13:28 assar Exp $ */
/* $FreeBSD$ */
/* MIT compatible com_err library */
#ifndef __COM_ERR_H__
#define __COM_ERR_H__
#include <sys/cdefs.h>
#ifdef __STDC__
#include <stdarg.h>
#endif
#ifndef __P
#ifdef __STDC__
#define __P(X) X
#else
#define __P(X) ()
#endif
#endif
#include <com_right.h>
typedef void (*errf) __P((const char *, long, const char *, va_list));
@ -68,6 +63,6 @@ void com_err __P((const char *, long, const char *, ...));
errf set_com_err_hook __P((errf));
errf reset_com_err_hook __P((void));
const char *error_table_name(int num);
const char *error_table_name __P((int num));
#endif /* __COM_ERR_H__ */