Module Name: src Committed By: kre Date: Sat Nov 2 13:02:01 UTC 2024
Modified Files: src/lib/libc/string: __strsignal.c Log Message: Stop attempting to return a (char*) in place of (const char *) This removes a cast that was added in 1994, when __strsignal() returned a char * to convert the const char * element of sys_siglist into a type that matched. It should have been removed when __strsignal() was changed to return const char * in 1998. But wasn't. This should fix an inane warning (treated as an error) from a compile stupid enough to allow a natural char * (as in char buf[N]) to be returned as a result (which is, of course, fine), but complains about returning (char *) applied to a (const char *). To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/lib/libc/string/__strsignal.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.