summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/tsearch.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lint is dead: delete useless LINTLIBRARY commentsguenther2015-09-261-2/+1
| | | | ok millert@
* All these files include <stdlib.h>, so do not need to castderaadt2015-08-201-2/+2
| | | | malloc/calloc/realloc* returns.
* lint is dead (long live the lint!), so stop using it as a cpp conditionalguenther2014-03-161-2/+2
| | | | | | (namespace pollution!) or talking about its opinion on code. ok krw@
* Revert previous diff as it resulted in the wrong return code whenguenther2012-02-061-5/+3
| | | | | | | the last node is deleted. Instead, resolve the Coverity warning by returning (node *)1 when you delete the root node. based an idea from millert@. ok otto@
* When tdelete() is used to delete the root node, don't return amoritz2006-04-041-1/+3
| | | | | | | | | | pointer to the freed root node, but return a pointer to the new root node. POSIX does not define, what should be returned in that case. Fixes Coverity CID 2528. ok millert@ otto@
* ansi + de-registerpat2005-03-301-20/+11
| | | | ok otto deraadt
* add some missing $, ok djm@ 'That looks fine to me' millert@jsg2004-10-011-0/+2
|
* Part one of userland __P removal. Done with a simple regexp with some minor ↵millert2002-02-161-3/+3
| | | | hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
* Include <stdlib.h> for malloc() proto.millert1997-07-011-0/+1
|
* PD tsearch as reqd by xpg; by esrderaadt1997-06-131-0/+125