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:
Ani Sinha 2022-01-06 22:37:55 +05:30 committed by Ján Tomko
parent 058d540bf6
commit a85f0095f2

View File

@ -34,7 +34,7 @@
VIR_LOG_INIT("util.uri");
static int
static void
virURIParamAppend(virURI *uri,
const char *name,
const char *value)
@ -52,7 +52,7 @@ virURIParamAppend(virURI *uri,
uri->params[uri->paramsCount].ignore = false;
uri->paramsCount++;
return 0;
return;
}
@ -113,8 +113,7 @@ virURIParseParams(virURI *uri)
}
/* Append to the parameter set. */
if (virURIParamAppend(uri, name, NULLSTR_EMPTY(value)) < 0)
return -1;
virURIParamAppend(uri, name, NULLSTR_EMPTY(value));
next:
query = end;