From 22c3fa7d601e3a59dc0e78fa951faeadee5d198c Mon Sep 17 00:00:00 2001 From: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Date: Thu, 19 May 2011 16:08:33 -0300 Subject: [PATCH] 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: Erik Alexandre Pucci <eap08@c3sl.ufpr.br> Acked-by: Josiney de Souza <josineys@c3sl.ufpr.br> Signed-off-by: Danilo K. S. Yorinori <danilok@c3sl.ufpr.br> --- src/client.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/client.c b/src/client.c index dfb587e..ea33948 100644 --- a/src/client.c +++ b/src/client.c @@ -31,7 +31,7 @@ * 3) Version file error (open, memory allocation) * 4) Client out-of-date * 5) Server returned an error - * 6) Unexpected server result + * 6) (Not used anymore) * 7) Server returned an empty version string * 8) Server returned an invalid version string * 9) Server did not find the version file @@ -479,16 +479,11 @@ void inventory(struct soap *soap, char *url, char *basedir) /* Verify response and print appropriate message */ if (strcmp(invResult, "Success") == 0) { - fprintf(stdout, "XML data sent successful\n"); - } - else if (strcmp(invResult, "Error") == 0) - { - ERROR("ERROR (5): XML data sent error\n"); - exit(5); + fprintf(stdout, "XML data sent successfully\n"); } else { - ERROR("ERROR (6): %s\nUnexpected result from server\n", invResult); - exit(6); + ERROR("ERROR (5): %s.\n"); + exit(5); } } -- GitLab