summaryrefslogtreecommitdiff
path: root/src/hyperv/hyperv_util.c
diff options
context:
space:
mode:
authorMartin Kletzander <mkletzan@redhat.com>2012-02-24 19:48:55 +0100
committerEric Blake <eblake@redhat.com>2012-02-24 16:49:21 -0700
commit9f748277bbd17d031f80d28e6d2fc4b52e8d5715 (patch)
treed01b242c29bb10c50a96918e55e7c70d0dc8d570 /src/hyperv/hyperv_util.c
parent801a60ff88e06087dd8fc2cf09b6b7b6b6d83f6d (diff)
downloadlibvirt-9f748277bbd17d031f80d28e6d2fc4b52e8d5715.tar.gz
Fixed URI parsing
Function xmlParseURI does not remove square brackets around IPv6 address when parsing. One of the solutions is making wrappers around functions working with xmlURI*. This assures that uri->server will be always properly assigned and it doesn't have to be changed when used on some new place in the code. For this purpose, functions virParseURI and virSaveURI were added. These function are wrappers around xmlParseURI and xmlSaveUri respectively. Also there is one new syntax check function to prohibit these functions anywhere else. File changes: - src/util/viruri.h -- declaration - src/util/viruri.c -- definition - src/libvirt_private.syms -- symbol export - src/Makefile.am -- added source and header files - cfg.mk -- added sc_prohibit_xmlURI - all others -- ID name and include fixes
Diffstat (limited to 'src/hyperv/hyperv_util.c')
-rw-r--r--src/hyperv/hyperv_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hyperv/hyperv_util.c b/src/hyperv/hyperv_util.c
index 298cfe0eef..2e6a2d4726 100644
--- a/src/hyperv/hyperv_util.c
+++ b/src/hyperv/hyperv_util.c
@@ -37,7 +37,7 @@
int
-hypervParseUri(hypervParsedUri **parsedUri, xmlURIPtr uri)
+hypervParseUri(hypervParsedUri **parsedUri, virURIPtr uri)
{
int result = -1;
struct qparam_set *queryParamSet = NULL;