summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/shared.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-11-26 17:21:04 +0000
committerChristopher Faylor <me@cgf.cx>2008-11-26 17:21:04 +0000
commit025c1fac6ee41d7814af7d114791dbf4c22ed617 (patch)
tree40ed7d77fb6578653e57e1f4693dbe594c13218a /winsup/cygwin/shared.cc
parentf43f75a09db3935effc2f56ecd47b55e3b7c9300 (diff)
downloadcygnal-025c1fac6ee41d7814af7d114791dbf4c22ed617.tar.gz
cygnal-025c1fac6ee41d7814af7d114791dbf4c22ed617.tar.bz2
cygnal-025c1fac6ee41d7814af7d114791dbf4c22ed617.zip
Remove unneeded whitespace.
* fhandler_fifo.cc (fhandler_fifo::open): Rework to cause errno to be set to ENXIO when opening a fifo write/nonblocking. * environ.cc (ucreqenv): Rename to ucenv. Move code from old ucenv here and conditionalize it on create_upcaseenv. (ucenv): Delete. (environ_init): Fix compiler warning by moving create_upcaseenv test to ucenv. Don't bother checking for child_proc_info when calling ucenv since it is assumed to be NULL at the point where the function is called. * path.cc (symlink_worker): Turn off MS-DOS path warnings when dealing with devices since the device handler passes in a translated MS-DOS path. * sec_auth.cc (lsaprivkeyauth): Avoid variable initialization which causes a compiler error. * fhandler_netdrive.cc: Update copyright.
Diffstat (limited to 'winsup/cygwin/shared.cc')
-rw-r--r--winsup/cygwin/shared.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc
index 5989dbd1a..505c4e3d0 100644
--- a/winsup/cygwin/shared.cc
+++ b/winsup/cygwin/shared.cc
@@ -52,13 +52,13 @@ get_shared_parent_dir ()
_cygwin_testing ? cygwin_version.dll_build_date : "");
RtlInitUnicodeString (&uname, bnoname);
InitializeObjectAttributes (&attr, &uname, OBJ_INHERIT | OBJ_OPENIF,
- NULL, everyone_sd (CYG_SHARED_DIR_ACCESS));
+ NULL, everyone_sd (CYG_SHARED_DIR_ACCESS));
status = NtCreateDirectoryObject (&dir, CYG_SHARED_DIR_ACCESS, &attr);
if (!NT_SUCCESS (status))
- api_fatal ("NtCreateDirectoryObject(%S): %p", &uname, status);
+ api_fatal ("NtCreateDirectoryObject(%S): %p", &uname, status);
}
return dir;
-}
+}
HANDLE
get_session_parent_dir ()
@@ -77,7 +77,7 @@ get_session_parent_dir ()
if (!NT_SUCCESS (status) || psi.SessionId == 0)
dir = get_shared_parent_dir ();
else
- {
+ {
WCHAR bnoname[MAX_PATH];
__small_swprintf (bnoname,
L"\\Sessions\\BNOLINKS\\%d\\%s%s",
@@ -92,7 +92,7 @@ get_session_parent_dir ()
}
}
return dir;
-}
+}
char * __stdcall
shared_name (char *ret_buf, const char *str, int num)
@@ -150,7 +150,7 @@ open_shared (const char *name, int n, HANDLE& shared_h, DWORD size,
else
{
shared_h = CreateFileMapping (INVALID_HANDLE_VALUE, psa,
- PAGE_READWRITE, 0, size, mapname);
+ PAGE_READWRITE, 0, size, mapname);
if (GetLastError () == ERROR_ALREADY_EXISTS)
m = SH_JUSTOPEN;
}
@@ -211,7 +211,7 @@ user_shared_initialize ()
/* Correct the user name with what's defined in /etc/passwd before
loading the user fstab file. */
if (pw)
- cygheap->user.set_name (pw->pw_name);
+ cygheap->user.set_name (pw->pw_name);
user_shared->mountinfo.init (); /* Initialize the mount table. */
user_shared->cb = sizeof (*user_shared);
}