summaryrefslogtreecommitdiff
path: root/lib/libc/tests/nss/getproto_test.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix various -Wpointer-compare warningsBrooks Davis2019-10-081-2/+2
| | | | | | | | | | | | | | | | | | | | This warning (comparing a pointer against a zero character literal rather than NULL) has existed since GCC 7.1.0, and was recently added to Clang trunk. Almost all of these are harmless, except for fwcontrol's str2node, which needs to both guard against dereferencing a NULL pointer (though in practice it appears none of the callers will ever pass one in), as well as ensure it doesn't parse the empty string as node 0 due to strtol's awkward interface. Submitted by: James Clarke <jtrc27@jrtc27.com> Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D21914 Notes: svn path=/head/; revision=353326
* getproto_test: fix -Wunused warningsEnji Cooper2017-05-281-2/+2
| | | | | | | | | | Mark unused parameters __unused in functions. MFC after: 3 days Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319041
* getproto_test: fix -Wmissing-prototypes and -Wsign-compare warningsEnji Cooper2017-05-281-4/+4
| | | | | | | | MFC after: 3 days Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319036
* lib/libc/tests/nss: use calloc appropriatelyEnji Cooper2017-05-281-1/+1
| | | | | | | | | | | The pattern used prior to this commit was `calloc(1, n * sizeof(type))`; the pattern that should be used however is `calloc(n, sizeof(type))`. MFC after: 3 days Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319027
* libc: spelling fixes.Pedro F. Giffuni2016-04-301-2/+2
| | | | | | | Mostly on comments. Notes: svn path=/head/; revision=298830
* Integrate tools/regression/lib/libc/nss into the FreeBSD test suite asEnji Cooper2015-12-161-0/+556
lib/libc/tests/nss - Convert the testcases to ATF - Do some style(9) cleanups: -- Sort headers -- Apply indentation fixes -- Remove superfluous parentheses - Explicitly print out debug printfs for use with `kyua {debug,report}`; for items that were overly noisy, they've been put behind #ifdef DEBUG conditionals - Fix some format strings MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292323