projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* doc/gnulib-readme.texi (Portability guidelines): ctype.h, not ctime.h.
[gnulib.git]
/
lib
/
accept4.c
diff --git
a/lib/accept4.c
b/lib/accept4.c
index
07dadb0
..
018ddfc
100644
(file)
--- a/
lib/accept4.c
+++ b/
lib/accept4.c
@@
-12,8
+12,7
@@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation,
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+ with this program; if not, see <http://www.gnu.org/licenses/>. */
#include <config.h>
#include <config.h>
@@
-91,7
+90,7
@@
accept4 (int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)
/* Closing fd before allocating the new fd ensures that the new fd will
have the minimum possible value. */
close (fd);
/* Closing fd before allocating the new fd ensures that the new fd will
have the minimum possible value. */
close (fd);
- nfd = _open_osfhandle ((
long
) new_handle,
+ nfd = _open_osfhandle ((
intptr_t
) new_handle,
O_NOINHERIT | (flags & (O_TEXT | O_BINARY)));
if (nfd < 0)
{
O_NOINHERIT | (flags & (O_TEXT | O_BINARY)));
if (nfd < 0)
{