]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
strings: do not depend on stdin
authoroshogbo <oshogbo@FreeBSD.org>
Thu, 21 Mar 2019 05:00:24 +0000 (05:00 +0000)
committeroshogbo <oshogbo@FreeBSD.org>
Thu, 21 Mar 2019 05:00:24 +0000 (05:00 +0000)
commite6a528b365db148e7c0621db14c1f9539f3dc69f
tree593f0b423cb2ab3d2825200f3bb706e2b5c18358
parent52ae896ad718e3f9daae72a9c68cf81652192152
strings: do not depend on stdin

Instead of depending on one stdin FILE structure and use freopen(3), pass to
the functions appropriate FILE structure.

Reviewed by: cem
Discussed with: emaste
Differential Revision: https://reviews.freebsd.org/D18037
contrib/elftoolchain/strings/strings.c