summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Lynch2006-05-15 11:34:27 +0200
committerDan Lynch2006-05-15 11:34:27 +0200
commita2799051b031829896620723831a0269d7955c51 (patch)
tree9218af10bef784b0d8f5483186d3649372c3dc09
parentlightweight xcurses implementation for etherboot (Michael made me do it...) (diff)
downloadipxe-a2799051b031829896620723831a0269d7955c51.tar.gz
ipxe-a2799051b031829896620723831a0269d7955c51.tar.xz
ipxe-a2799051b031829896620723831a0269d7955c51.zip
fixed build error (danjlynch, repeat: this is *not* perl, this is *not* perl...)
-rw-r--r--src/core/curses.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/curses.c b/src/core/curses.c
index e5565a82..f61f61e0 100644
--- a/src/core/curses.c
+++ b/src/core/curses.c
@@ -172,9 +172,11 @@ int waddchnstr ( WINDOW *win, const chtype *chstr, int n ) {
_advcurs_nowrap( win );
/* set rendition code here */
}
- _restore_curs_pos( win, pos ) && return OK;
+ _restore_curs_pos( win, pos );
+ return OK;
err:
- _restore_curs_pos( win, pos ) && return ERR;
+ _restore_curs_pos( win, pos );
+ return ERR;
}
/**