You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/03/12 07:22:18 UTC
svn commit: r517110 - /webservices/axis2/trunk/c/util/src/log.c
Author: dinesh
Date: Sun Mar 11 23:22:17 2007
New Revision: 517110
URL: http://svn.apache.org/viewvc?view=rev&rev=517110
Log:
log.c code formatted
Modified:
webservices/axis2/trunk/c/util/src/log.c
Modified: webservices/axis2/trunk/c/util/src/log.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/log.c?view=diff&rev=517110&r1=517109&r2=517110
==============================================================================
--- webservices/axis2/trunk/c/util/src/log.c (original)
+++ webservices/axis2/trunk/c/util/src/log.c Sun Mar 11 23:22:17 2007
@@ -5,7 +5,7 @@
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
- *
+
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@@ -71,14 +71,12 @@
if (log_impl->mutex)
{
axis2_thread_mutex_destroy(log_impl->mutex);
- log_impl->mutex = NULL;
}
if (AXIS2_INTF_TO_IMPL(log)->stream)
{
if (log_impl->stream)
{
axis2_file_handler_close(log_impl->stream);
- log_impl->stream = NULL;
}
}
AXIS2_FREE(allocator, log_impl);
@@ -158,7 +156,7 @@
axis2_thread_mutex_unlock(log_impl->mutex);
- if (NULL == log_impl->stream)
+ if (!log_impl->stream)
log_impl->stream = stderr;
/* by default, log is enabled */
@@ -269,12 +267,12 @@
if (log && format && log->enabled)
{
- if (NULL == (fd = AXIS2_INTF_TO_IMPL(log)->stream))
+ if (!(fd = AXIS2_INTF_TO_IMPL(log)->stream))
{
fprintf(stderr, "Stream is not found\n");
}
- if (NULL == (mutex = AXIS2_INTF_TO_IMPL(log)->mutex))
+ if (!(mutex = AXIS2_INTF_TO_IMPL(log)->mutex))
{
fprintf(stderr, "Log mutex is not found\n");
@@ -303,13 +301,13 @@
if (log && format && log->enabled)
{
- if (NULL == (fd = AXIS2_INTF_TO_IMPL(log)->stream))
+ if (!(fd = AXIS2_INTF_TO_IMPL(log)->stream))
{
fprintf(stderr, "Stream is not found\n");
}
- if (NULL == (mutex = AXIS2_INTF_TO_IMPL(log)->mutex))
+ if (!(mutex = AXIS2_INTF_TO_IMPL(log)->mutex))
{
fprintf(stderr, "Log mutex is not found\n");
@@ -340,13 +338,13 @@
if (log && format && log->enabled)
{
- if (NULL == (fd = AXIS2_INTF_TO_IMPL(log)->stream))
+ if (!(fd = AXIS2_INTF_TO_IMPL(log)->stream))
{
fprintf(stderr, "Stream is not found\n");
}
- if (NULL == (mutex = AXIS2_INTF_TO_IMPL(log)->mutex))
+ if (!(mutex = AXIS2_INTF_TO_IMPL(log)->mutex))
{
fprintf(stderr, "Log mutex is not found\n");
@@ -380,13 +378,13 @@
if (log && format && log->enabled)
{
- if (NULL == (fd = AXIS2_INTF_TO_IMPL(log)->stream))
+ if (!(fd = AXIS2_INTF_TO_IMPL(log)->stream))
{
fprintf(stderr, "Stream is not found\n");
}
- if (NULL == (mutex = AXIS2_INTF_TO_IMPL(log)->mutex))
+ if (!(mutex = AXIS2_INTF_TO_IMPL(log)->mutex))
{
fprintf(stderr, "Log mutex is not found\n");
@@ -417,13 +415,13 @@
if (log && format && log->enabled)
{
- if (NULL == (fd = AXIS2_INTF_TO_IMPL(log)->stream))
+ if (!(fd = AXIS2_INTF_TO_IMPL(log)->stream))
{
fprintf(stderr, "Stream is not found\n");
}
- if (NULL == (mutex = AXIS2_INTF_TO_IMPL(log)->mutex))
+ if (!(mutex = AXIS2_INTF_TO_IMPL(log)->mutex))
{
fprintf(stderr, "Log mutex is not found\n");
@@ -448,7 +446,7 @@
char *time_str;
tp = time(&tp);
time_str = ctime(&tp);
- if (NULL == time_str)
+ if (!time_str)
{
return NULL;
}
@@ -505,13 +503,13 @@
if (log && format && log->enabled)
{
- if (NULL == (fd = AXIS2_INTF_TO_IMPL(log)->stream))
+ if (!(fd = AXIS2_INTF_TO_IMPL(log)->stream))
{
fprintf(stderr, "Stream is not found\n");
}
- if (NULL == (mutex = AXIS2_INTF_TO_IMPL(log)->mutex))
+ if (!(mutex = AXIS2_INTF_TO_IMPL(log)->mutex))
{
fprintf(stderr, "Log mutex is not found\n");
@@ -538,3 +536,4 @@
{
}
#endif
+
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org