Commit 44701692 authored by Adriano da Luz's avatar Adriano da Luz Committed by Danilo K. S. Yorinori

client.c: Added parameter to getUpdateLink() and getAgentVersion() calls

The parameter "OS" specifies the operating system where the client is
being run.
Signed-off-by: default avatarAdriano da Luz <al08@c3sl.ufpr.br>
Acked-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
Signed-off-by: default avatarDanilo K. S. Yorinori <danilok@c3sl.ufpr.br>
parent 1237941f
......@@ -319,8 +319,7 @@ void print_update_link(struct soap *soap, char *url)
{
char *updateLink;
int error;
error = soap_call_ns1__getUpdateLink(soap, url, "", &updateLink);
error = soap_call_ns1__getUpdateLink(soap, url, "", OS, &updateLink);
if (error != SOAP_OK)
{
soap_print_fault(soap, stderr);
......@@ -354,8 +353,7 @@ void check_version(struct soap *soap, char *url, char *clientVersion)
{
char *versionFromServer;
int error;
error = soap_call_ns1__getAgentVersion(soap, url, "", &versionFromServer);
error = soap_call_ns1__getAgentVersion(soap, url, "", OS, &versionFromServer);
if (error != SOAP_OK)
{
soap_print_fault(soap, stderr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment