Skip to content
Snippets Groups Projects
Commit c2ce2aa4 authored by Yang Tse's avatar Yang Tse
Browse files

fix compiler warning
parent 90c9fd55
No related branches found
No related tags found
No related merge requests found
......@@ -183,13 +183,15 @@ static const char *doc404 = "HTTP/1.1 404 Not Found\r\n"
"The requested URL was not found on this server.\n"
"<P><HR><ADDRESS>" SWSVERSION "</ADDRESS>\n" "</BODY></HTML>\n";
#if defined(SIGPIPE) && defined(HAVE_SIGNAL)
#ifndef WIN32
# if defined(SIGPIPE) && defined(HAVE_SIGNAL)
static volatile int sigpipe; /* Why? It's not used */
static void sigpipe_handler(int sig)
{
(void)sig; /* prevent warning */
sigpipe = 1;
}
# endif
#endif
static int ProcessRequest(struct httprequest *req)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment