httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r886214 - /httpd/httpd/trunk/server/util_mutex.c
Date Wed, 02 Dec 2009 17:36:46 GMT
Author: trawick
Date: Wed Dec  2 17:36:46 2009
New Revision: 886214

URL: http://svn.apache.org/viewvc?rev=886214&view=rev
Log:
fix this:
util_mutex.c: In function ‘ap_set_mutex’:
util_mutex.c:188: warning: comparison between pointer and integer
util_mutex.c:174: warning: unused variable ‘type’

Modified:
    httpd/httpd/trunk/server/util_mutex.c

Modified: httpd/httpd/trunk/server/util_mutex.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_mutex.c?rev=886214&r1=886213&r2=886214&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_mutex.c (original)
+++ httpd/httpd/trunk/server/util_mutex.c Wed Dec  2 17:36:46 2009
@@ -171,7 +171,6 @@
     apr_pool_t *p = cmd->pool;
     const char **elt;
     const char *mechdir;
-    const char *type;
     int no_mutex = 0, omit_pid = 0;
     apr_array_header_t *type_list;
     apr_lockmech_e mech;
@@ -185,7 +184,7 @@
     }
 
     mechdir = ap_getword_conf(cmd->pool, &arg);
-    if (*mechdir == NULL) {
+    if (*mechdir == '\0') {
         return "Mutex requires at least a mechanism argument (" 
                AP_ALL_AVAILABLE_MUTEXES_STRING ")";
     }



Mime
View raw message