]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Make has_key() a static inline, rather than omitting it altogether.
authorMichael Brown <mcb30@etherboot.org>
Sat, 28 Jul 2007 21:55:17 +0000 (22:55 +0100)
committerMichael Brown <mcb30@etherboot.org>
Sat, 28 Jul 2007 21:55:17 +0000 (22:55 +0100)
src/hci/mucurses/kb.c
src/include/curses.h

index a68cf26a7f7094c65740f389b8f678ddb73ed9f6..291ee6ac8a02e7d3e73b15212d9a38f115543d82 100644 (file)
@@ -19,21 +19,7 @@ int m_delay; /*
 bool m_echo;
 bool m_cbreak;
 
-#if 0
-/**
- * Check KEY_ code supported status
- *
- * @v kc       keycode value to check
- * @ret TRUE   KEY_* supported
- * @ret FALSE  KEY_* unsupported
- */
-int has_key ( int kc __unused ) {
-       return TRUE;
-} 
-#endif
-
-static
-int _wgetc ( WINDOW *win ) {
+static int _wgetc ( WINDOW *win ) {
        int timer, c;
 
        if ( win == NULL )
index 164dd2020d47b31c8fc31b739dc30671494186b7..762a63b5ac82daf185be107e833e00b897ec9df6 100644 (file)
@@ -566,6 +566,10 @@ static inline bool has_colors ( void ) {
        return TRUE;
 }
 
+static inline int has_key ( int kc __unused ) {
+       return TRUE;
+}
+
 static inline int hline ( chtype ch, int n ) {
        return whline ( stdscr, ch, n );
 }