mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
change return type of virURIParamAppend() to void type
virURIParamAppend() unconditionally returns 0. Simplify and make the return type as void type. Signed-off-by: Ani Sinha <ani@anisinha.ca> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
058d540bf6
commit
a85f0095f2
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
VIR_LOG_INIT("util.uri");
|
VIR_LOG_INIT("util.uri");
|
||||||
|
|
||||||
static int
|
static void
|
||||||
virURIParamAppend(virURI *uri,
|
virURIParamAppend(virURI *uri,
|
||||||
const char *name,
|
const char *name,
|
||||||
const char *value)
|
const char *value)
|
||||||
@ -52,7 +52,7 @@ virURIParamAppend(virURI *uri,
|
|||||||
uri->params[uri->paramsCount].ignore = false;
|
uri->params[uri->paramsCount].ignore = false;
|
||||||
uri->paramsCount++;
|
uri->paramsCount++;
|
||||||
|
|
||||||
return 0;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -113,8 +113,7 @@ virURIParseParams(virURI *uri)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Append to the parameter set. */
|
/* Append to the parameter set. */
|
||||||
if (virURIParamAppend(uri, name, NULLSTR_EMPTY(value)) < 0)
|
virURIParamAppend(uri, name, NULLSTR_EMPTY(value));
|
||||||
return -1;
|
|
||||||
|
|
||||||
next:
|
next:
|
||||||
query = end;
|
query = end;
|
||||||
|
Loading…
Reference in New Issue
Block a user