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>2005-05-02 07:50:11 +0400
committerChristopher Faylor <me@cgf.cx>2005-05-02 07:50:11 +0400
commit05726ddd86c1421add510d5e8395cf7e3ac378f3 (patch)
treee7a339d3b7773fee264eb134e3acfb1ca87877f2 /winsup/cygwin/syslog.cc
parentb9b1b38358983f564e48ced1a9a599698e1be36f (diff)
white space and minor comment cleanup.
Diffstat (limited to 'winsup/cygwin/syslog.cc')
-rw-r--r--winsup/cygwin/syslog.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc
index a363b95dc..b856bb7aa 100644
--- a/winsup/cygwin/syslog.cc
+++ b/winsup/cygwin/syslog.cc
@@ -1,6 +1,6 @@
/* syslog.cc
- Copyright 1996, 1997, 1998, 1999, 2000, 2001 Red Hat, Inc.
+ Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Red Hat, Inc.
This file is part of Cygwin.
@@ -201,11 +201,11 @@ try_connect_syslogd (const char *msg, int len)
if (stat64 (_PATH_LOG, &st) || !S_ISSOCK (st.st_mode))
goto out;
if ((fd = cygwin_socket (AF_LOCAL, SOCK_DGRAM, 0)) < 0)
- goto out;
+ goto out;
sa.sa_family = AF_LOCAL;
strncpy (sa.sa_data, _PATH_LOG, sizeof sa.sa_data);
if (cygwin_connect (fd, &sa, sizeof sa))
- {
+ {
if (get_errno () != EPROTOTYPE)
{
close (fd);
@@ -230,9 +230,9 @@ out:
{
ret = write (syslogd_sock, msg, len);
/* If write fails and LOG_CONS is set, return failure to vsyslog so
- it falls back to the usual logging method for this OS. */
+ it falls back to the usual logging method for this OS. */
if (ret >= 0 || !(_my_tls.locals.process_logopt & LOG_CONS))
- ret = syslogd_sock;
+ ret = syslogd_sock;
}
try_connect_guard.release ();
return ret;