Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-09-22 07:38:57 +0400
committerChristopher Faylor <me@cgf.cx>2002-09-22 07:38:57 +0400
commitc90e1cf179187d5d188a3003db503ffd86d80cfe (patch)
treead0890e2267f00de92aefc5a99d60017e4f15fe9 /winsup/cygwin/syslog.cc
parent228f6b6e07f1b08620dc08f389263f228da0079f (diff)
* fhandler.cc (fhandler_base::dup): Don't set handle on failure. Caller has
already taken care of that. * fhandler_console.cc (fhandler_console::open): Initialize handles to NULL. (fhandler_console::close): Ditto. GNUify non-GNU formatted functions calls throughout.
Diffstat (limited to 'winsup/cygwin/syslog.cc')
-rw-r--r--winsup/cygwin/syslog.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc
index 11ae4b46c..f424a4f4e 100644
--- a/winsup/cygwin/syslog.cc
+++ b/winsup/cygwin/syslog.cc
@@ -42,11 +42,11 @@ get_win95_event_log_path ()
/* FIXME: For MT safe code these will need to be replaced */
#ifdef _MT_SAFE
-#define process_ident _reent_winsup()->_process_ident
-#define process_logopt _reent_winsup()->_process_logopt
-#define process_facility _reent_winsup()->_process_facility
+#define process_ident _reent_winsup ()->_process_ident
+#define process_logopt _reent_winsup ()->_process_logopt
+#define process_facility _reent_winsup ()->_process_facility
/* Default priority logmask */
-#define process_logmask _reent_winsup()->_process_logmask
+#define process_logmask _reent_winsup ()->_process_logmask
#else
static char *process_ident = 0;
static int process_logopt = 0;
@@ -303,7 +303,7 @@ syslog (int priority, const char *message, ...)
if (process_logopt & LOG_PID)
{
if (pass.print ("Win32 Process Id = 0x%X : Cygwin Process Id = 0x%X : ",
- GetCurrentProcessId(), getpid ()) == -1)
+ GetCurrentProcessId (), getpid ()) == -1)
return;
}
@@ -389,7 +389,7 @@ syslog (int priority, const char *message, ...)
HANDLE fHandle = cygheap->fdtab[fileno (fp)]->get_handle ();
if (LockFile (fHandle, 0, 0, 1, 0) == FALSE)
{
- debug_printf ("failed to lock file %s", get_win95_event_log_path());
+ debug_printf ("failed to lock file %s", get_win95_event_log_path ());
fclose (fp);
return;
}