OSSP CVS Repository

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

ossp-pkg/l2/l2_channel.c 1.29 -> 1.30

--- l2_channel.c 2002/07/30 19:08:25     1.29
+++ l2_channel.c 2003/01/06 11:41:51     1.30
@@ -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
@@ -30,7 +31,7 @@
 
 #include "l2_p.h"
 
-/* 
+/*
  * A channel is the central object for a logging stream. It is
  * implemented by a framework (the code implemented here) which provides
  * the channel API and which is equal for all channels and a particular
@@ -309,8 +310,8 @@
         rv = ch->handler.open(&ch->context, ch);
     else
         rv = L2_OK_PASS;
-   
-    /* optionally pass operation downstream */ 
+
+    /* optionally pass operation downstream */
     if (rv == L2_OK_PASS) {
         rv = L2_OK;
         chD = NULL;
@@ -367,8 +368,8 @@
         rv = ch->handler.write(&ch->context, ch, level, buf, bufsize);
     else
         rv = L2_OK_PASS;
-   
-    /* optionally pass operation downstream */ 
+
+    /* optionally pass operation downstream */
     if (rv == L2_OK_PASS) {
         rv = L2_OK;
         chD = NULL;
@@ -400,8 +401,8 @@
         rv = ch->handler.flush(&ch->context, ch);
     else
         rv = L2_OK_PASS;
-   
-    /* optionally pass operation downstream */ 
+
+    /* optionally pass operation downstream */
     if (rv == L2_OK_PASS) {
         rv = L2_OK;
         chD = NULL;
@@ -423,7 +424,7 @@
     /* argument sanity check */
     if (ch == NULL)
         return L2_ERR_ARG;
-    
+
     /* make sure channel is in state "opened" */
     if (ch->state != L2_CHSTATE_OPENED)
         return L2_ERR_USE;
@@ -433,8 +434,8 @@
         rv = ch->handler.close(&ch->context, ch);
     else
         rv = L2_OK_PASS;
-   
-    /* optionally pass operation downstream */ 
+
+    /* optionally pass operation downstream */
     if (rv == L2_OK_PASS) {
         rv = L2_OK;
         chD = NULL;
@@ -471,8 +472,8 @@
         rv = ch->handler.destroy(&ch->context, ch);
     else
         rv = L2_OK_PASS;
-   
-    /* optionally pass operation downstream */ 
+
+    /* optionally pass operation downstream */
     if (rv == L2_OK_PASS) {
         rv = L2_OK;
         chD = NULL;
@@ -528,7 +529,7 @@
     /* iterate over all configured L2 formatters */
     for (i = 0; i < L2_MAX_FORMATTERS && env->formatters[i].cb != NULL; i++) {
         if (env->formatters[i].id == cId) {
-            rv = env->formatters[i].cb(env->formatters[i].ctx, cId, cpParam, 
+            rv = env->formatters[i].cb(env->formatters[i].ctx, cId, cpParam,
                                        cpBuf, nBufLenMax, npOutLen, apArgs);
             vfmt->data[1].i = (int)rv;
             if (rv == L2_OK) {

CVSTrac 2.0.1