diff options
author | snowdrop | 2006-02-08 11:13:13 +0000 |
---|---|---|
committer | snowdrop | 2006-02-08 11:13:13 +0000 |
commit | c4286ea5287279836c5ef49a06153db95429bfe6 (patch) | |
tree | 1ace3f15224374a6350b028b2fe50d34072f5f87 /nanohttp/nanohttp-common.c | |
parent | 1340ec27d42648e84878abe2d2f0b6f23ca24d82 (diff) | |
download | csoap-c4286ea5287279836c5ef49a06153db95429bfe6.tar.gz csoap-c4286ea5287279836c5ef49a06153db95429bfe6.tar.bz2 |
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
Diffstat (limited to 'nanohttp/nanohttp-common.c')
-rw-r--r-- | nanohttp/nanohttp-common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nanohttp/nanohttp-common.c b/nanohttp/nanohttp-common.c index 062c66c..adead8c 100644 --- a/nanohttp/nanohttp-common.c +++ b/nanohttp/nanohttp-common.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-common.c,v 1.24 2006/01/18 16:28:24 mrcsys Exp $ +* $Id: nanohttp-common.c,v 1.25 2006/02/08 11:13:14 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -31,6 +31,8 @@ #include <string.h> #include <ctype.h> +#include <pthread.h> + #ifdef MEM_DEBUG #include <utils/alloc.h> #endif @@ -283,7 +285,7 @@ log_write(log_level_t level, const char *prefix, #ifdef WIN32 sprintf(buffer, "*%s*: [%s] %s\n", prefix, func, format); #else - sprintf(buffer, "*%s*:(%d) [%s] %s\n", + sprintf(buffer, "*%s*:(%ld) [%s] %s\n", prefix, pthread_self(), func, format); #endif vsprintf(buffer2, buffer, ap); |