fix compiler warning
This commit is contained in:
Родитель
e592da5a59
Коммит
3ca0b9bb47
|
@ -183,11 +183,8 @@ 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";
|
||||
|
||||
#ifdef SIGPIPE
|
||||
#if defined(SIGPIPE) && defined(HAVE_SIGNAL)
|
||||
static volatile int sigpipe; /* Why? It's not used */
|
||||
#endif
|
||||
|
||||
#ifdef SIGPIPE
|
||||
static void sigpipe_handler(int sig)
|
||||
{
|
||||
(void)sig; /* prevent warning */
|
||||
|
|
|
@ -484,7 +484,7 @@ int main(int argc, char **argv)
|
|||
sock = socket(AF_INET6, SOCK_DGRAM, 0);
|
||||
#endif
|
||||
|
||||
if (sock < 0) {
|
||||
if(CURL_SOCKET_BAD == sock) {
|
||||
perror("opening stream socket");
|
||||
logmsg("Error opening socket");
|
||||
return 1;
|
||||
|
@ -543,7 +543,7 @@ int main(int argc, char **argv)
|
|||
from.sin_family = AF_INET;
|
||||
|
||||
peer = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
if (peer < 0) {
|
||||
if(CURL_SOCKET_BAD == peer) {
|
||||
logmsg("socket");
|
||||
result = 2;
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче