diff -r cfc6cd502f85 -r 8d3b4d19ce27 misc/openalbridge/errlib.h --- a/misc/openalbridge/errlib.h Wed Apr 21 01:57:23 2010 +0000 +++ b/misc/openalbridge/errlib.h Wed Apr 21 10:22:06 2010 +0000 @@ -1,11 +1,11 @@ /* - + module: errlib.h - + purpose: definitions of function sin errlib.c - + reference: Stevens, Unix network programming (2ed), p.922 - + */ #ifndef _ERRLIB_H @@ -13,31 +13,23 @@ #include "globals.h" -#ifdef __CPLUSPLUS -extern "C" { -#endif - - extern int daemon_proc; - - void err_msg (const char *fmt, ...); - void err_quit (const char *fmt, ...); - void err_ret (const char *fmt, ...); - void err_sys (const char *fmt, ...); - void err_dump (const char *fmt, ...); - -#ifdef __CPLUSPLUS -} -#endif +extern int daemon_proc; + +void err_msg (const char *fmt, ...); +void err_quit (const char *fmt, ...); +void err_ret (const char *fmt, ...); +void err_sys (const char *fmt, ...); +void err_dump (const char *fmt, ...); #endif /*_ERRLIB_H*/ /* suggested error string ( PROG ) LEVEL - TEXT : ERRNO - - errno? closeprog? log level - err_msg no no LOG_INFO - err_quit no exit(1) LOG_ERR - err_ret si no LOG_INFO - err_sys si exit(1) LOG_ERR + + errno? closeprog? log level + err_msg no no LOG_INFO + err_quit no exit(1) LOG_ERR + err_ret si no LOG_INFO + err_sys si exit(1) LOG_ERR err_dump si abort( ) LOG_ERR - */ \ No newline at end of file + */