]> www.infradead.org Git - users/dwmw2/qemu.git/commit
block/nbd: Use URI parsing code from glib
authorThomas Huth <thuth@redhat.com>
Thu, 18 Apr 2024 10:10:53 +0000 (12:10 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 14 May 2024 10:46:46 +0000 (12:46 +0200)
commitad97c011dcb0e5b5e1eae50c0f8ddb89281056e4
tree5dfa42a9c10b3fba54bb072d653d40ab72c4871c
parent3413c6628b71c865da354590c3b05aa1f55a0729
block/nbd: Use URI parsing code from glib

Since version 2.66, glib has useful URI parsing functions, too.
Use those instead of the QEMU-internal ones to be finally able
to get rid of the latter. The g_uri_get_host() also takes care
of removing the square brackets from IPv6 addresses, so we can
drop that part of the QEMU code now, too.

Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-ID: <20240418101056.302103-11-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
block/nbd.c