mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
accel: use g_strsplit for parsing accelerator names
Instead of re-using the get_opt_name() method from QemuOpts to split a string on ':', just use g_strsplit(). Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20180416111743.8473-2-berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
7afcfd32a6
commit
20efc49ed6
3 changed files with 9 additions and 11 deletions
|
@ -49,7 +49,8 @@
|
|||
* The return value is the position of the delimiter/zero byte after the option
|
||||
* name in p.
|
||||
*/
|
||||
const char *get_opt_name(char *buf, int buf_size, const char *p, char delim)
|
||||
static const char *get_opt_name(char *buf, int buf_size, const char *p,
|
||||
char delim)
|
||||
{
|
||||
char *q;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue