From 3f7e239dea5ff9261e6e68ee449c714d63b5c857 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 18 Mar 1998 18:36:48 +0000 Subject: [PATCH] Change type of sys_errlist[] to match definition in /usr/include/errno.h --- gdb/ChangeLog | 4 ++++ gdb/rdi-share/etherdrv.c | 10 +++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5f58a54dbbf..bb24d68a8e2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Wed Mar 18 10:34:51 1998 Nick Clifton + + * rdi-share/etherdrv.c: Set sys_errlist[] as char * not const char *. + Fri Mar 13 15:43:53 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) * config/mips/xm-mips.h (CC_HAS_LONG_LONG): Undefine for Ultrix diff --git a/gdb/rdi-share/etherdrv.c b/gdb/rdi-share/etherdrv.c index 3c7f25487bf..cd0980eecb5 100644 --- a/gdb/rdi-share/etherdrv.c +++ b/gdb/rdi-share/etherdrv.c @@ -80,13 +80,9 @@ #ifndef COMPILING_ON_WINDOWS -/* these two might not work for windows */ - extern int sys_nerr; -#ifdef __linux__ - extern const char *const sys_errlist[]; -#else - extern char *sys_errlist[]; -#endif +/* These two might not work for windows. */ +extern int sys_nerr; +extern char * sys_errlist[]; #endif #ifndef UNUSED -- 2.30.2