From c3fd98b25607d0f7f5977586d188f88ab226a9b8 Mon Sep 17 00:00:00 2001 From: m0gg Date: Tue, 21 Nov 2006 20:58:59 +0000 Subject: decoupling of nanohttp/libcsoap --- libcsoap/soap-service.c | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'libcsoap/soap-service.c') diff --git a/libcsoap/soap-service.c b/libcsoap/soap-service.c index dc3a2a5..7a422c5 100644 --- a/libcsoap/soap-service.c +++ b/libcsoap/soap-service.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: soap-service.c,v 1.9 2006/11/19 09:40:14 m0gg Exp $ +* $Id: soap-service.c,v 1.10 2006/11/21 20:59:02 m0gg Exp $ * * CSOAP Project: A SOAP client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -25,8 +25,8 @@ #include #endif -#ifdef HAVE_SYS_TIME_H -#include +#ifdef HAVE_STDLIB_H +#include #endif #ifdef HAVE_STDIO_H @@ -37,16 +37,23 @@ #include #endif +#ifdef HAVE_ERRNO_H +#include +#endif + #ifdef HAVE_NETINET_IN_H #include #endif +#include +#include + #include -#include -#include -#include #include +#include "soap-fault.h" +#include "soap-env.h" +#include "soap-ctx.h" #include "soap-service.h" SoapServiceNode * @@ -98,11 +105,14 @@ soap_service_new(const char *urn, const char *method, SoapServiceFunc f) void soap_service_free(SoapService * service) { - if (service == NULL) + if (!service) return; - free(service->urn); - free(service->method); + if (service->urn) + free(service->urn); + + if (service->method) + free(service->method); free(service); -- cgit v1.1-32-gdbae