Date: Wed, 12 Apr 2006 22:33:19 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95098 for review Message-ID: <200604122233.k3CMXJJK041911@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95098 Change 95098 by jb@jb_freebsd2 on 2006/04/12 22:32:31 Cast the returned value of strerror() to 'const char *'. On Solaris strerror() returns a const, but on FreeBSD it doesn't although it would make sense to. SUSv3 doesn't declare it with 'const' though, so I guess this is why we don't. Affected files ... .. //depot/projects/dtrace/src/contrib/opensolaris/lib/libctf/common/ctf_subr.c#2 edit Differences ... ==== //depot/projects/dtrace/src/contrib/opensolaris/lib/libctf/common/ctf_subr.c#2 (text) ==== @@ -66,7 +66,7 @@ const char * ctf_strerror(int err) { - return (strerror(err)); + return ((const char *) strerror(err)); } /*PRINTFLIKE1*/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604122233.k3CMXJJK041911>