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

client.c: Removed server error verification (error 6)


This error is not necessary anymore, because the server will print the
appropriate error message, exiting with error 5 in these cases.

Signed-off-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
Acked-by: default avatarJosiney de Souza <josineys@c3sl.ufpr.br>
Signed-off-by: default avatarDanilo K. S. Yorinori <danilok@c3sl.ufpr.br>
parent 26128cc5
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
* 3) Version file error (open, memory allocation) * 3) Version file error (open, memory allocation)
* 4) Client out-of-date * 4) Client out-of-date
* 5) Server returned an error * 5) Server returned an error
* 6) Unexpected server result * 6) (Not used anymore)
* 7) Server returned an empty version string * 7) Server returned an empty version string
* 8) Server returned an invalid version string * 8) Server returned an invalid version string
* 9) Server did not find the version file * 9) Server did not find the version file
...@@ -479,16 +479,11 @@ void inventory(struct soap *soap, char *url, char *basedir) ...@@ -479,16 +479,11 @@ void inventory(struct soap *soap, char *url, char *basedir)
/* Verify response and print appropriate message */ /* Verify response and print appropriate message */
if (strcmp(invResult, "Success") == 0) if (strcmp(invResult, "Success") == 0)
{ {
fprintf(stdout, "XML data sent successful\n"); fprintf(stdout, "XML data sent successfully\n");
}
else if (strcmp(invResult, "Error") == 0)
{
ERROR("ERROR (5): XML data sent error\n");
exit(5);
} }
else else
{ {
ERROR("ERROR (6): %s\nUnexpected result from server\n", invResult); ERROR("ERROR (5): %s.\n");
exit(6); exit(5);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment