From 7a496b610b04c534e84d6ba3d5783afc3491e4ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Tue, 18 Nov 2008 11:03:59 +0100 Subject: [PATCH] Fix comment style // -> /* */ --- include/lighttpd/settings.h | 2 +- include/lighttpd/sys-socket.h | 4 ++-- include/lighttpd/virtualrequest.h | 2 +- src/config_parser.rl | 6 +++--- src/profiler.c | 2 +- src/sys-socket.c | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/lighttpd/settings.h b/include/lighttpd/settings.h index e282a14..89ebbff 100644 --- a/include/lighttpd/settings.h +++ b/include/lighttpd/settings.h @@ -225,7 +225,7 @@ #if __GNUC__ #define INLINE static inline -// # define INLINE extern inline +/* # define INLINE extern inline */ #else # define INLINE static #endif diff --git a/include/lighttpd/sys-socket.h b/include/lighttpd/sys-socket.h index 38619fa..56b395a 100644 --- a/include/lighttpd/sys-socket.h +++ b/include/lighttpd/sys-socket.h @@ -12,8 +12,8 @@ #endif /* FD_SETSIZE */ #include #include -//#include -//#define HAVE_IPV6 -- not until we've resolved the inet_ntop issue. +/* #include */ +/* #define HAVE_IPV6 -- not until we've resolved the inet_ntop issue. */ #define ECONNRESET WSAECONNRESET #define EINPROGRESS WSAEINPROGRESS diff --git a/include/lighttpd/virtualrequest.h b/include/lighttpd/virtualrequest.h index 792e0ff..59e76fd 100644 --- a/include/lighttpd/virtualrequest.h +++ b/include/lighttpd/virtualrequest.h @@ -27,7 +27,7 @@ typedef enum { VRS_WRITE_CONTENT, /* request done */ -// VRS_END, +/* VRS_END, */ VRS_ERROR } vrequest_state; diff --git a/src/config_parser.rl b/src/config_parser.rl index 32ffeb8..6261e33 100644 --- a/src/config_parser.rl +++ b/src/config_parser.rl @@ -20,7 +20,7 @@ access ctx->; prepush { - //_printf("current stacksize: %d, top: %d\n", ctx->stacksize, ctx->top); + /* _printf("current stacksize: %d, top: %d\n", ctx->stacksize, ctx->top); */ /* increase stacksize if necessary */ if (ctx->stacksize == ctx->top) { @@ -167,7 +167,7 @@ } action keyvalue_start { - //fpc--; + /* fpc--; */ _printf("keyvalue start in line %zd\n", ctx->line); fcall key_value_scanner; } @@ -189,7 +189,7 @@ /* push list on the stack */ g_queue_push_head(ctx->option_stack, l); - //fpc--; + /* fpc--; */ fret; } diff --git a/src/profiler.c b/src/profiler.c index c78d503..1f8a3eb 100644 --- a/src/profiler.c +++ b/src/profiler.c @@ -36,7 +36,7 @@ static void profiler_hashtable_init() { static guint profiler_hash_addr(gpointer addr) { guint h = (gsize) addr; h = (h >> 3) * 2654435761; /* ~ golden ratio of 2^32, shift 3 because of 8 byte boundary alignment (use 2 for 4 byte boundary) */ - //printf("hashing addr 0x%zx: %u ([%u])\n", (gsize)addr, h, h % PROFILER_HASHTABLE_SIZE); + /* printf("hashing addr 0x%zx: %u ([%u])\n", (gsize)addr, h, h % PROFILER_HASHTABLE_SIZE); */ return h % PROFILER_HASHTABLE_SIZE; } diff --git a/src/sys-socket.c b/src/sys-socket.c index 7a8f8d7..585413f 100644 --- a/src/sys-socket.c +++ b/src/sys-socket.c @@ -49,7 +49,7 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt) int ipv6 = af == AF_INET6; - // DebugBreak(); + /* DebugBreak(); */ if ( ipv6 ) {