diff options
author | bde <bde@FreeBSD.org> | 2000-01-14 18:28:23 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2000-01-14 18:28:23 +0000 |
commit | 81c47c06b284564189c5eb2dd48bf53d33247359 (patch) | |
tree | 36530cb79f18b3d35247a8f3923d2b512579637a /contrib/com_err | |
parent | 42e0a0cec8a472387d0ff38a49051d85d7861b6a (diff) | |
download | FreeBSD-src-81c47c06b284564189c5eb2dd48bf53d33247359.zip FreeBSD-src-81c47c06b284564189c5eb2dd48bf53d33247359.tar.gz |
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.
Diffstat (limited to 'contrib/com_err')
-rw-r--r-- | contrib/com_err/com_err.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/contrib/com_err/com_err.h b/contrib/com_err/com_err.h index 66421c8..19cf034 100644 --- a/contrib/com_err/com_err.h +++ b/contrib/com_err/com_err.h @@ -37,22 +37,17 @@ */ /* $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__ -#ifdef __STDC__ -#include <stdarg.h> -#endif +#include <sys/cdefs.h> -#ifndef __P #ifdef __STDC__ -#define __P(X) X -#else -#define __P(X) () -#endif +#include <stdarg.h> #endif #include <com_right.h> @@ -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__ */ |