pkarashchenko commented on code in PR #1199: URL: https://github.com/apache/incubator-nuttx-apps/pull/1199#discussion_r898072882
########## graphics/nxwm/src/ckeyboard.cxx: ########## @@ -167,7 +167,7 @@ int CKeyboard::open(void) { // Try to open the keyboard device - fd = std::open(CONFIG_NXWM_KEYBOARD_DEVPATH, O_RDONLY); + fd = open(CONFIG_NXWM_KEYBOARD_DEVPATH, O_RDONLY); Review Comment: ```suggestion fd = ::open(CONFIG_NXWM_KEYBOARD_DEVPATH, O_RDONLY); ``` ########## graphics/nxwm/src/cnxterm.cxx: ########## @@ -489,16 +489,16 @@ int CNxTerm::nxterm(int argc, char *argv[]) std::fflush(stderr); #ifdef CONFIG_NXTERM_NXKBDIN - std::dup2(fd, 0); + dup2(fd, 0); #endif - std::dup2(fd, 1); - std::dup2(fd, 2); + dup2(fd, 1); + dup2(fd, 2); // And we can close our original driver file descriptor if (fd > 2) { - std::close(fd); + close(fd); Review Comment: ```suggestion ::close(fd); ``` ########## graphics/twm4nx/apps/cnxterm.cxx: ########## @@ -402,16 +402,16 @@ int CNxTerm::nxterm(int argc, char *argv[]) std::fflush(stderr); #ifdef CONFIG_NXTERM_NXKBDIN - std::dup2(fd, 0); + dup2(fd, 0); #endif - std::dup2(fd, 1); - std::dup2(fd, 2); + dup2(fd, 1); + dup2(fd, 2); // And we can close our original driver file descriptor if (fd > 2) { - std::close(fd); + close(fd); Review Comment: ```suggestion ::close(fd); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org