You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/01/12 09:06:50 UTC

svn commit: r368306 - in /webservices/axis2/trunk/c: include/axis2_log.h modules/util/log.c

Author: samisa
Date: Thu Jan 12 00:06:43 2006
New Revision: 368306

URL: http://svn.apache.org/viewcvs?rev=368306&view=rev
Log:
Fixed the prototype to get the string as a const

Modified:
    webservices/axis2/trunk/c/include/axis2_log.h
    webservices/axis2/trunk/c/modules/util/log.c

Modified: webservices/axis2/trunk/c/include/axis2_log.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_log.h?rev=368306&r1=368305&r2=368306&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_log.h (original)
+++ webservices/axis2/trunk/c/include/axis2_log.h Thu Jan 12 00:06:43 2006
@@ -71,7 +71,7 @@
         * @param size size of the buffer to be written to log
         * @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE
         */
-        axis2_status_t (AXIS2_CALL *write) (axis2_char_t *buffer, axis2_log_levels_t level);
+        axis2_status_t (AXIS2_CALL *write) (const axis2_char_t *buffer, axis2_log_levels_t level);
     } axis2_log_ops_t;
 
   /** 

Modified: webservices/axis2/trunk/c/modules/util/log.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/log.c?rev=368306&r1=368305&r2=368306&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/log.c (original)
+++ webservices/axis2/trunk/c/modules/util/log.c Thu Jan 12 00:06:43 2006
@@ -31,7 +31,7 @@
     return 0;
 }
 
-axis2_status_t AXIS2_CALL axis2_log_impl_write (axis2_char_t *buffer, axis2_log_levels_t level);
+axis2_status_t AXIS2_CALL axis2_log_impl_write (const axis2_char_t *buffer, axis2_log_levels_t level);
 
 AXIS2_DECLARE(axis2_log_t *)
 axis2_log_create (axis2_allocator_t * allocator, axis2_log_ops_t * ops)
@@ -66,7 +66,7 @@
 }
 
 axis2_status_t AXIS2_CALL
-axis2_log_impl_write (axis2_char_t *buffer, axis2_log_levels_t level)
+axis2_log_impl_write (const axis2_char_t *buffer, axis2_log_levels_t level)
 {
     if (!buffer)
         return -1;