From: FRIGN Date: Tue, 22 Sep 2015 11:13:25 +0000 (+0200) Subject: dup() -> dup2() X-Git-Url: https://git.xinqibao.xyz/st.git/commitdiff_plain/20d53cebc122829449524ef339ce44e13c6e85ec?hp=20d53cebc122829449524ef339ce44e13c6e85ec dup() -> dup2() gcc would warn about an unused result. We know it is 0 and dup() can't fail in these circumstances, as we closed fd0 previously. Using dup2() to do the same saves one line and shuts gcc up, bringing us a clean build back. ---