X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=extras%2Fezio%2Ftty.c;h=a4bb14ce2179eeb29e47dd694d0a6ded1bbe0549;hb=480ce8abca4ae262a4148fe757aebe3e0ddba6f6;hp=fefeea15545334ef13803eed6215c80633c9575c;hpb=67a4917b07031b387beafaedce413b4207214059;p=openvswitch diff --git a/extras/ezio/tty.c b/extras/ezio/tty.c index fefeea15..a4bb14ce 100644 --- a/extras/ezio/tty.c +++ b/extras/ezio/tty.c @@ -28,10 +28,10 @@ #include "fatal-signal.h" #include "socket-util.h" #include "util.h" - -#define THIS_MODULE VLM_tty #include "vlog.h" +VLOG_DEFINE_THIS_MODULE(tty) + /* Get major() and minor() macros. */ #if MAJOR_IN_MKDEV # include @@ -263,7 +263,7 @@ tty_set_raw_mode(int fd, speed_t speed) return errno; } s->tios = tios; - fatal_signal_add_hook(restore_termios, s, true); + fatal_signal_add_hook(restore_termios, NULL, s, true); tios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);