diff options
Diffstat (limited to 'src/ErrDes.c')
-rw-r--r-- | src/ErrDes.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/ErrDes.c b/src/ErrDes.c index a7f82cc..9ea3f88 100644 --- a/src/ErrDes.c +++ b/src/ErrDes.c @@ -48,6 +48,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ******************************************************************/ +/* $XFree86: xc/lib/X11/ErrDes.c,v 3.10 2001/12/14 19:53:59 dawes Exp $ */ #include "Xlibint.h" #include <X11/Xos.h> @@ -58,17 +59,11 @@ SOFTWARE. #define ERRORDB "/usr/lib/X11/XErrorDB" #endif -#ifdef __STDC__ -#define Const const -#else -#define Const /**/ -#endif - /* * descriptions of errors in Section 4 of Protocol doc (pp. 350-351); more * verbose descriptions are given in the error database */ -static Const char * Const _XErrorList[] = { +static const char * const _XErrorList[] = { /* No error */ "no error", /* BadRequest */ "BadRequest", /* BadValue */ "BadValue", @@ -90,6 +85,7 @@ static Const char * Const _XErrorList[] = { }; +int XGetErrorText(dpy, code, buffer, nbytes) register int code; register Display *dpy; @@ -125,6 +121,7 @@ XGetErrorText(dpy, code, buffer, nbytes) return 0; } +int #if NeedFunctionPrototypes /*ARGSUSED*/ XGetErrorDatabaseText( |