Skip to content
Snippets Groups Projects
Commit 25a69bb7 authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci Committed by Danilo K. S. Yorinori
Browse files

client.c: Removed unused availability function

parent 3e85b629
Branches
No related tags found
No related merge requests found
...@@ -386,47 +386,6 @@ void check_version(struct soap *soap, char *url, char *clientVersion) ...@@ -386,47 +386,6 @@ void check_version(struct soap *soap, char *url, char *clientVersion)
fprintf(stderr, "Client version up-to-date\n"); fprintf(stderr, "Client version up-to-date\n");
} }
/*----------------------------------------------------------------------------
* Summary: Contact webservice server, sending the INEP and MacAddress of the
* machine.
* Parameters:
* soap SOAP struct
* url URL of the contacted webservice server
* inep INEP of the school
* macAddr Machine address
* Return: void
*/
void availability(struct soap *soap, char *url, char *inep, char *macAddr)
{
char *availResult;
if (soap_call_ns1__setAvailability(soap, url, "", inep, macAddr,
&availResult) != SOAP_OK)
{
soap_print_fault(soap, stderr);
exit(2);
}
/* Get availability result from response */
DEBUG("AvailResult: %s\n", availResult);
/* Verify response and print approriate message */
if (strcmp(availResult, "Success") == 0)
{
fprintf(stdout, "Data sent successful\n");
}
else if (strcmp(availResult, "Error") == 0)
{
ERROR("ERROR (5): Data sent error\n");
exit(5);
}
else
{
ERROR("ERROR (6): %s\nUnexpected result from server\n", availResult);
exit(6);
}
}
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------
* Summary: Read XML data file and return the xmlInventory string. * Summary: Read XML data file and return the xmlInventory string.
* Parameters: * Parameters:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment