Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(from:
20d53ce
)
dup() -> dup2()
author
FRIGN <
[email protected]
>
Tue, 22 Sep 2015 11:13:25 +0000
(13:13 +0200)
committer
FRIGN <
[email protected]
>
Tue, 22 Sep 2015 12:15:24 +0000
(14:15 +0200)
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.
No differences found