summaryrefslogtreecommitdiff
path: root/unix/modtermios.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-10-07 14:09:59 +1100
committerDamien George <damien.p.george@gmail.com>2016-10-07 14:09:59 +1100
commit016dba0e988352015bcbf43ec84f3b67e2244dc4 (patch)
tree466edac8f50a8e1d0ee025c243860e0359e388e4 /unix/modtermios.c
parent503089ea9d6b358f1a06ad1f164561b7cf11c742 (diff)
unix: Use common RAISE_ERRNO macro from mphalport.h.
Diffstat (limited to 'unix/modtermios.c')
-rw-r--r--unix/modtermios.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/unix/modtermios.c b/unix/modtermios.c
index 2fef4f223..2cb5f26df 100644
--- a/unix/modtermios.c
+++ b/unix/modtermios.c
@@ -29,13 +29,9 @@
#include <unistd.h>
#include <errno.h>
-#include "py/nlr.h"
#include "py/objlist.h"
#include "py/runtime.h"
-
-#define RAISE_ERRNO(err_flag, error_val) \
- { if (err_flag == -1) \
- { mp_raise_OSError(error_val); } }
+#include "py/mphal.h"
STATIC mp_obj_t mod_termios_tcgetattr(mp_obj_t fd_in) {
struct termios term;