[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modification to mntinc47.tgz



On Wed, 27 Aug 1997, Yves Pelletier wrote:

>From Mikko Larjava:

> > And strerror.c doesn't compile with gcc 2.7.2 if one const is not added 
> > to strlist[] (or what the name was). Gives redifinition to different type 
> > or something like that.

Ok... try the attached patch.  There's only one compiler warning
left, and I seriously doubt it will be fatal.  Someone please
let me know if I goofed.

Yves

__
Please, remove thine lips from the tit of corporate,
market driven faux technology.         --Nesta Stubbs
--- strerror.c.bak	Thu Aug 28 16:48:00 1997
+++ strerror.c	Thu Aug 28 16:51:36 1997
@@ -3,7 +3,11 @@
 
 static char nullstr[] = "unknown error";
 
-char *sys_errlist[] =
+#ifndef __MBASE__

+char const *const sys_errlist[] =

+#else

+char const *sys_errlist[] =

+#endif

 	{
 	"OK",					/* 0 */
 	"error",				/* 1 */