X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Faccept4.c;h=018ddfca4767ee4502a9cbae7fb7bea55e5282a4;hb=b08858a5c7fbaa77119a13509627cb416370bac7;hp=07dadb0e12919ada105aa04aeb7e6a62bc3439f3;hpb=00f43085d1bd7d745a515ef76fe99d7a8df7644e;p=gnulib.git
diff --git a/lib/accept4.c b/lib/accept4.c
index 07dadb0e1..018ddfca4 100644
--- 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
- 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 . */
#include
@@ -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);
- nfd = _open_osfhandle ((long) new_handle,
+ nfd = _open_osfhandle ((intptr_t) new_handle,
O_NOINHERIT | (flags & (O_TEXT | O_BINARY)));
if (nfd < 0)
{