summaryrefslogtreecommitdiffstats
path: root/src/hci/mucurses
diff options
context:
space:
mode:
authorMichael Brown2007-01-05 15:48:20 +0100
committerMichael Brown2007-01-05 15:48:20 +0100
commitd0a3cc3417c0de4599ef3289b5e50cdc62bc7b89 (patch)
tree12ad41ac6d1676172e220a00e9ed7c83c9506d69 /src/hci/mucurses
parentPartial implementation of UNDI loader caller. (diff)
downloadipxe-d0a3cc3417c0de4599ef3289b5e50cdc62bc7b89.tar.gz
ipxe-d0a3cc3417c0de4599ef3289b5e50cdc62bc7b89.tar.xz
ipxe-d0a3cc3417c0de4599ef3289b5e50cdc62bc7b89.zip
Avoid creating implicit memcpy()s
Diffstat (limited to 'src/hci/mucurses')
-rw-r--r--src/hci/mucurses/print.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/hci/mucurses/print.c b/src/hci/mucurses/print.c
index dd9e299c..fc14e67e 100644
--- a/src/hci/mucurses/print.c
+++ b/src/hci/mucurses/print.c
@@ -56,11 +56,10 @@ static void _printw_handler ( struct printf_context *ctx, unsigned int c ) {
* @ret rc return status code
*/
int vw_printw ( WINDOW *win, const char *fmt, va_list varglist ) {
- struct printw_context wctx = {
- .win = win,
- .ctx = { .handler = _printw_handler, },
- };
+ struct printw_context wctx;
+ wctx.win = win;
+ wctx.ctx.handler = _printw_handler;
vcprintf ( &(wctx.ctx), fmt, varglist );
return OK;
}