[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strerror() and PL48
On Wed, May 20, 1998 at 11:14:41AM +0200, Andreas Schwab wrote:
> |> static char nullstr[] = "unknown error"
>
> |> to:
>
> |> char const nullstr[] = "unknown error"
>
> |> and casting the return value back to (char *).
>
> |> If that does not break anything
>
> You should restore the `static'.
At least rename it to _nullstr to avoid namespace pollution (or was the
missing const the problem?).
Ciao
Guido
--
http://stud.uni-sb.de/~gufl0000
mailto:gufl0000@stud.uni-sb.de