From: Laslo Hunhold Date: Mon, 28 May 2018 19:16:02 +0000 (+0200) Subject: Refactor swap.c to use getline() instead of buf-filling X-Git-Url: https://git.xinqibao.xyz/slstatus.git/commitdiff_plain/a18439af114b98ab026921b0cac61164f7a4eea8?hp=a18439af114b98ab026921b0cac61164f7a4eea8 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. ---