Module Name: src Committed By: martin Date: Sun Nov 17 13:32:53 UTC 2024
Modified Files: src/lib/libc/string [netbsd-10]: __strsignal.c src/sys/arch/macppc/stand/fixcoff [netbsd-10]: fixcoff.c src/tools/compat [netbsd-10]: Makefile compat_defs.h configure configure.ac nbtool_config.h.in src/usr.bin/elf2aout [netbsd-10]: elf2aout.c Log Message: Pull up following revision(s) (requested by kre in ticket #1004): tools/compat/configure: revision 1.106 lib/libc/string/__strsignal.c: revision 1.26 tools/compat/configure.ac: revision 1.108 tools/compat/nbtool_config.h.in: revision 1.57 usr.bin/elf2aout/elf2aout.c: revision 1.24 tools/compat/Makefile: revision 1.93 sys/arch/macppc/stand/fixcoff/fixcoff.c: revision 1.13 tools/compat/compat_defs.h: revision 1.123 Include <arpa/inet.h> for htonl() (From Jan-Benedict Glaw) Probably this should be using htobe32() instead of htonl() (and so <endian.h> rather than <arpa/inet.h>) as there is no sign of any network anywhere near here. But that's for another day, and to be done by someone who can test it. Portability fixes from Jan-Benedict Glaw The args to help() and usage() need to be const char * and main() should be declared as returning int. Add shquote to libnbcompat Include shquote() in configure tests Regen for added shquote() 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.25.42.1 src/lib/libc/string/__strsignal.c cvs rdiff -u -r1.12 -r1.12.10.1 src/sys/arch/macppc/stand/fixcoff/fixcoff.c cvs rdiff -u -r1.90 -r1.90.2.1 src/tools/compat/Makefile cvs rdiff -u -r1.120 -r1.120.4.1 src/tools/compat/compat_defs.h cvs rdiff -u -r1.99.6.1 -r1.99.6.2 src/tools/compat/configure \ src/tools/compat/configure.ac cvs rdiff -u -r1.53.6.1 -r1.53.6.2 src/tools/compat/nbtool_config.h.in cvs rdiff -u -r1.23 -r1.23.10.1 src/usr.bin/elf2aout/elf2aout.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.