diff options
author | Michael Brown | 2011-03-29 17:34:07 +0200 |
---|---|---|
committer | Michael Brown | 2011-03-30 18:12:10 +0200 |
commit | 6a6dd5c4524774a6a32cb5c49713ae3250f98da0 (patch) | |
tree | af7b2cf99aa3ed157d5af18d97c2dba54d92f5c2 /src/hci/readline.c | |
parent | [build] Add "allmroms" target (diff) | |
download | ipxe-6a6dd5c4524774a6a32cb5c49713ae3250f98da0.tar.gz ipxe-6a6dd5c4524774a6a32cb5c49713ae3250f98da0.tar.xz ipxe-6a6dd5c4524774a6a32cb5c49713ae3250f98da0.zip |
[readline] Add init_editstring() wrapper function
Standardise on using init_editstring() to initialise an embedded
editable string, to match the coding style used by other embedded
objects.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/readline.c')
-rw-r--r-- | src/hci/readline.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hci/readline.c b/src/hci/readline.c index e76d2d09..666ebf0c 100644 --- a/src/hci/readline.c +++ b/src/hci/readline.c @@ -93,8 +93,7 @@ char * readline ( const char *prompt ) { printf ( "%s", prompt ); memset ( &string, 0, sizeof ( string ) ); - string.buf = buf; - string.len = sizeof ( buf ); + init_editstring ( &string, buf, sizeof ( buf ) ); buf[0] = '\0'; while ( 1 ) { |