]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: avoid code duplication
authorSami Kerola <kerolasa@iki.fi>
Sun, 13 Jul 2014 16:40:31 +0000 (17:40 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 13 Jul 2014 17:35:38 +0000 (18:35 +0100)
commitbbe67996ada5c9f689b650775ad5262081cf256e
tree5f2e8af91044db39df17986760ef5869dfc0689a
parent9cbf20040b2f8af98dcff0fc889208dde50e3dd4
fdisk: avoid code duplication

To me having call to close() twice is less readable than one new
variable.

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