Refactor swap.c to use getline() instead of buf-filling
authorLaslo Hunhold <dev@frign.de>
Mon, 28 May 2018 19:16:02 +0000 (21:16 +0200)
committerAaron Marcher <me@drkhsh.at>
Mon, 28 May 2018 20:21:34 +0000 (22:21 +0200)
commita18439af114b98ab026921b0cac61164f7a4eea8
treeac12c5e3b8e2c82ad24493bef1d6b262c86b5237
parent5d6415608b37ebed185e00eae01eb743edb555e5
Refactor swap.c to use getline() instead of buf-filling

This drops a lot of code and even though we are using a common function,
the specification of only the needed things keeps it very efficient and
even more efficient in memory and time than the previous solution.
components/swap.c