projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "sflow" into "master".
[openvswitch]
/
extras
/
ezio
/
ezio-term.c
diff --git
a/extras/ezio/ezio-term.c
b/extras/ezio/ezio-term.c
index 93ec1c28056e4bb2ba0b3a3f9a61edccb97ba14d..846ccfded7cfffce0904e05f094b05e2f8663eec 100644
(file)
--- a/
extras/ezio/ezio-term.c
+++ b/
extras/ezio/ezio-term.c
@@
-106,7
+106,7
@@
main(int argc, char *argv[])
argv += optind;
/* Make sure that the ezio3 terminfo entry is available. */
argv += optind;
/* Make sure that the ezio3 terminfo entry is available. */
- dummy_fd =
open("/dev/null", O_RDWR
);
+ dummy_fd =
get_null_fd(
);
if (dummy_fd >= 0) {
if (setupterm("ezio3", dummy_fd, &retval) == ERR) {
if (retval == 0) {
if (dummy_fd >= 0) {
if (setupterm("ezio3", dummy_fd, &retval) == ERR) {
if (retval == 0) {
@@
-118,9
+118,6
@@
main(int argc, char *argv[])
}
}
del_curterm(cur_term);
}
}
del_curterm(cur_term);
- close(dummy_fd);
- } else {
- ovs_error(errno, "failed to open /dev/null");
}
/* Lock serial port. */
}
/* Lock serial port. */