OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_ch_syslog.c versions 1.32 and 1.33
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_ch_syslog.c 1.32 -> 1.33

--- l2_ch_syslog.c       2002/11/09 14:44:31     1.32
+++ l2_ch_syslog.c       2003/01/06 11:41:51     1.33
@@ -1,9 +1,10 @@
 /*
-**  OSSP l2 - Logging Library
-**  Copyright (c) 2001-2002 The OSSP Project (http://www.ossp.org/)
-**  Copyright (c) 2001-2002 Cable & Wireless Deutschland (http://www.cw.com/de/)
+**  OSSP l2 - Flexible Logging
+**  Copyright (c) 2001-2003 Cable & Wireless Deutschland GmbH
+**  Copyright (c) 2001-2003 The OSSP Project (http://www.ossp.org/)
+**  Copyright (c) 2001-2003 Ralf S. Engelschall <rse@engelschall.com>
 **
-**  This file is part of OSSP L2, a flexible logging library which
+**  This file is part of OSSP l2, a flexible logging library which
 **  can be found at http://www.ossp.org/pkg/lib/l2/.
 **
 **  Permission to use, copy, modify, and distribute this software for
@@ -191,7 +192,7 @@
         cfg->nFacility = l2_ch_syslog_SLfac[i].numLOCAL;
     else
         cfg->nFacility = (l2_ch_syslog_SLfac[i].numREMOTE << 3);
-    if (   strcmp(cfg->szTarget, "remote") == 0 
+    if (   strcmp(cfg->szTarget, "remote") == 0
         && (cfg->szRemoteHost == NULL
             || (cfg->nRemotePort <= 0 || cfg->nRemotePort >= 65536)))
         return L2_ERR_USE;
@@ -227,7 +228,7 @@
             return L2_ERR_USE;
         if ((rc = sa_addr_create(&cfg->saaRemoteAddr)) != SA_OK)
             return (rc == SA_ERR_SYS ? L2_ERR_SYS : L2_ERR_INT);
-        if ((rc = sa_addr_u2a(cfg->saaRemoteAddr, "inet://%s:%d", 
+        if ((rc = sa_addr_u2a(cfg->saaRemoteAddr, "inet://%s:%d",
                               cfg->szRemoteHost, cfg->nRemotePort)) != SA_OK)
             return (rc == SA_ERR_SYS ? L2_ERR_SYS : L2_ERR_INT);
         if ((rc = sa_create(&cfg->saRemoteSock)) != SA_OK)
@@ -287,13 +288,13 @@
         strftime(caTime, sizeof(caTime), "%b %d %H:%M:%S", tm);
         if (caTime[4] == '0')
             caTime[4] = ' ';
-        if (cfg->bLogPid) 
-            n = l2_util_sprintf(caBuf, sizeof(caBuf), "<%d>%s %s %s[%lu]: %s", 
-                                prio, caTime, cfg->szLocalHost, 
+        if (cfg->bLogPid)
+            n = l2_util_sprintf(caBuf, sizeof(caBuf), "<%d>%s %s %s[%lu]: %s",
+                                prio, caTime, cfg->szLocalHost,
                                 cfg->szIdent, (unsigned long)getpid(), buf);
         else
-            n = l2_util_sprintf(caBuf, sizeof(caBuf), "<%d>%s %s %s: %s", 
-                                prio, caTime, cfg->szLocalHost, 
+            n = l2_util_sprintf(caBuf, sizeof(caBuf), "<%d>%s %s %s: %s",
+                                prio, caTime, cfg->szLocalHost,
                                 cfg->szIdent, buf);
         if ((n = strlen(caBuf)) > 1024)
             return L2_ERR_IO;

CVSTrac 2.0.1