From c4286ea5287279836c5ef49a06153db95429bfe6 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Wed, 8 Feb 2006 11:13:13 +0000 Subject: the attached patches address the following issues: * query the port the server is listening on {soap_server,httpd}_get_port * the possibility to add a default service via httpd_register_default * remove some compiler warnings (on FreeBSD pthread_t is a pointer to a struct pthread, on Linux it is a (unsigned?) long int) tschuess, Heiko --- examples/csoap/soapclient.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/csoap/soapclient.c b/examples/csoap/soapclient.c index 7f96364..d40faf8 100644 --- a/examples/csoap/soapclient.c +++ b/examples/csoap/soapclient.c @@ -5,6 +5,7 @@ #include #include +#include #include #define MAX_LINE_LENGTH 65535 @@ -200,7 +201,7 @@ main(int argc, char *argv[]) // create buffer char Buffer[MAX_LINE_LENGTH]; - int bytes_read, bytes_left; + long bytes_read, bytes_left; // read from stdin until EOF while (!feof(stdin)) @@ -209,7 +210,7 @@ main(int argc, char *argv[]) // pass each line into ParseLine char *EndLinePos; - while (EndLinePos = strchr(Buffer, '\n')) + while ((EndLinePos = strchr(Buffer, '\n'))) { ParseLine(ctx, Buffer, EndLinePos - Buffer); memmove(Buffer, EndLinePos + 1, bytes_read - (EndLinePos - Buffer + 1)); @@ -217,7 +218,7 @@ main(int argc, char *argv[]) } // no '\n' found in the whole Buffer, that means line's too - long bytes_left = strlen(Buffer); + bytes_left = strlen(Buffer); if (bytes_left == MAX_LINE_LENGTH) { log_error1("The parameter line is too long."); -- cgit v1.1-32-gdbae