OSSP CVS Repository

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

ossp-pkg/l2/l2_ut_fmtcb.c 1.6 -> 1.7

--- l2_ut_fmtcb.c        2002/07/30 19:08:25     1.6
+++ l2_ut_fmtcb.c        2003/01/06 11:41:52     1.7
@@ -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
@@ -32,9 +33,9 @@
 #include "l2.h"
 #include <errno.h>
 
-l2_result_t 
+l2_result_t
 l2_util_fmt_string(
-    l2_context_t *ctx, const char id, const char *param, 
+    l2_context_t *ctx, const char id, const char *param,
     char *bufptr, size_t bufsize, size_t *buflen, va_list *ap)
 {
     char *cpStr;
@@ -51,13 +52,13 @@
     return L2_OK;
 }
 
-l2_result_t 
+l2_result_t
 l2_util_fmt_dump(
-    l2_context_t *ctx, const char id, const char *param, 
+    l2_context_t *ctx, const char id, const char *param,
     char *bufptr, size_t bufsize, size_t *buflen, va_list *ap)
 {
     static const char hex_table[]    = "0123456789abcdef";
-    static const char base64_table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" 
+    static const char base64_table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                                        "abcdefghijklmnopqrstuvwxyz"
                                        "0123456789+/";
     unsigned char base64_in[3];
@@ -78,7 +79,7 @@
     if (ucpData == NULL)
         return L2_ERR_ARG;
 
-    /* 
+    /*
      * textual dumping: "foo\1bar" -> "foo\x01bar"
      */
     if (strcmp(param, "text") == 0 || param[0] == '\0') {
@@ -102,9 +103,9 @@
                     return L2_ERR_MEM;
                 *cpO++ = '\\';
                 switch ((int)uc) {
-                    case '\t': *cpO++ = 't'; break; 
-                    case '\r': *cpO++ = 'r'; break; 
-                    case '\n': *cpO++ = 'n'; break; 
+                    case '\t': *cpO++ = 't'; break;
+                    case '\r': *cpO++ = 'r'; break;
+                    case '\n': *cpO++ = 'n'; break;
                     default: break;
                 }
             }
@@ -120,7 +121,7 @@
         *buflen = ((char *)cpO - bufptr);
     }
 
-    /* 
+    /*
      * hexadecimal dumping: "foo\1bar" -> "66:6f:6f:01:62:61:72"
      */
     else if (strcmp(param, "hex") == 0) {
@@ -189,12 +190,12 @@
     return L2_OK;
 }
 
-l2_result_t 
+l2_result_t
 l2_util_fmt_errno(
     l2_context_t *ctx, const char id, const char *param,
     char *bufptr, size_t bufsize, size_t *buflen, va_list *ap)
-{   
-    sprintf(bufptr, "(%d) %s", errno, strerror(errno)); 
+{
+    sprintf(bufptr, "(%d) %s", errno, strerror(errno));
     *buflen = strlen(bufptr);
     return L2_OK;
 }

CVSTrac 2.0.1