PERFORCE change 95098 for review
John Birrell
jb at FreeBSD.org
Wed Apr 12 22:33:21 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=95098
Change 95098 by jb at 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*/
More information about the p4-projects
mailing list