diff options
author | Michael Brown | 2007-01-05 15:48:20 +0100 |
---|---|---|
committer | Michael Brown | 2007-01-05 15:48:20 +0100 |
commit | d0a3cc3417c0de4599ef3289b5e50cdc62bc7b89 (patch) | |
tree | 12ad41ac6d1676172e220a00e9ed7c83c9506d69 /src/hci/mucurses | |
parent | Partial implementation of UNDI loader caller. (diff) | |
download | ipxe-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.c | 7 |
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; } |