]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r267426, r267464:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 21 Jun 2014 01:48:45 +0000 (01:48 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 21 Jun 2014 01:48:45 +0000 (01:48 +0000)
commit28bd582e9a1e202f2ba03cbe04a6ace307c7775a
treef52e00e34423d07617c8faeafa9b81f346ef1901
parent47ecc86099e9e535913baf8e529ac7a0fc5fc412
MFC r267426, r267464:

Avoid zeroing during allocation.

This change reverts a change from OpenBSD which made use of
calloc, and therefore wasted time initializing arrays that
will later be realloc'ed.

Consistently use FreeBSD's reallocf():
- Drop some bogus casts to size_t.
- The new_p_foo variables are not needed anymore.

Also merge the changes from OpenBSD's manpage
patch.1 Rev 1.27:
"patch was moved from user portability (UP) to base in issue 7
and is no longer optional"

git-svn-id: svn://svn.freebsd.org/base/stable/10@267701 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/patch/patch.1
usr.bin/patch/pch.c