From 9a751621661bab473334333b4422599bc26164a2 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 26 Jan 2003 06:42:40 +0000 Subject: * uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for CreateFile failure. --- winsup/cygwin/net.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/net.cc') diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index eabd1b375..99301e3d4 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -124,7 +124,7 @@ set_socket_inheritance (SOCKET sock) SOCKET osock = sock; if (!DuplicateHandle (hMainProc, (HANDLE) sock, hMainProc, (HANDLE *) &sock, - 0, TRUE, DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE)) + 0, TRUE, DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE)) system_printf ("DuplicateHandle failed %E"); else debug_printf ("DuplicateHandle succeeded osock %p, sock %p", osock, sock); @@ -153,7 +153,7 @@ extern "C" unsigned short htons (unsigned short x) { return ((((x & 0x000000ffU) << 8) | - ((x & 0x0000ff00U) >> 8))); + ((x & 0x0000ff00U) >> 8))); } /* ntohs: standards? */ -- cgit v1.2.3