Mercurial > emacs
comparison src/process.c @ 3593:e425c3048283
* process.c (sigchld_handler): Add cast, to avoid warnings on Linux.
(Fopen_network_stream): Cast the second argument to connect, to
avoid warnings on any system that provides prototypes for connect.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Wed, 09 Jun 1993 12:39:16 +0000 |
parents | 7ce5a10ed6d9 |
children | c7aadfb55138 |
comparison
equal
deleted
inserted
replaced
3592:7ce5a10ed6d9 | 3593:e425c3048283 |
---|---|
1476 s = socket (host_info_ptr->h_addrtype, SOCK_STREAM, 0); | 1476 s = socket (host_info_ptr->h_addrtype, SOCK_STREAM, 0); |
1477 if (s < 0) | 1477 if (s < 0) |
1478 report_file_error ("error creating socket", Fcons (name, Qnil)); | 1478 report_file_error ("error creating socket", Fcons (name, Qnil)); |
1479 | 1479 |
1480 loop: | 1480 loop: |
1481 if (connect (s, &address, sizeof address) == -1) | 1481 if (connect (s, (struct sockaddr *) &address, sizeof address) == -1) |
1482 { | 1482 { |
1483 int xerrno = errno; | 1483 int xerrno = errno; |
1484 if (errno == EINTR) | 1484 if (errno == EINTR) |
1485 goto loop; | 1485 goto loop; |
1486 close (s); | 1486 close (s); |