]> git.ipfire.org Git - thirdparty/util-linux.git/commit
more: move currently open file to control structure
authorSami Kerola <kerolasa@iki.fi>
Wed, 18 Mar 2020 20:13:08 +0000 (20:13 +0000)
committerSami Kerola <kerolasa@iki.fi>
Sat, 28 Mar 2020 07:55:59 +0000 (07:55 +0000)
commit82129a6fca440fe48ce41705890f83c7a85df4ae
tree58d1350dc9a4154052ed095f12e6e246e4e638ee
parent1f5d21ec3393c4ef824fb7f4e0546dfcd8a1114a
more: move currently open file to control structure

Currently open file is needed a bit here and there.  Move it to control
structure to avoid passing it around.  This also makes fixing memory leak at
more_exit() very easy.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/more.c