summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/xmalloc.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Change internal xrealloc() to a idiom-following xreallocarray().deraadt2015-04-291-2/+2
| | | | | | | This loses a "new size is 0" failure case. Probably not relevant; and since we develop this in OpenBSD, we'll catch that before someone else imports this... ok millert
* More cvs/diff/rcs convergence:ray2009-06-071-1/+2
| | | | | | | | | | | 1. Mostly variable/function renaming, SIZE_T_MAX->SIZE_MAX, and spacing. 2. One strchr -> strncspn. 3. diff had a weird thing where it set file[12] = ofile[12] but never updated file or ofile, then if file and ofile were different it freed it. I removed it. OK millert
* Bring in some changes from rcsdiff:ray2007-05-291-0/+30
1. Replace all the e*alloc functions with the x*alloc versions. 2. Whitespace syncs according to style. 3. Remove the __inline stuff. 4. Remove the min/max functions, using the MAX/MIN macros instead. OK millert@