tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1196303 - /tomcat/jk/trunk/native/iis/jk_isapi_plugin.c
Date Tue, 01 Nov 2011 21:48:06 GMT
Author: mturk
Date: Tue Nov  1 21:48:06 2011
New Revision: 1196303

URL: http://svn.apache.org/viewvc?rev=1196303&view=rev
Log:
Passing pointer to pointer and then getting its value just make no sense.

Modified:
    tomcat/jk/trunk/native/iis/jk_isapi_plugin.c

Modified: tomcat/jk/trunk/native/iis/jk_isapi_plugin.c
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/iis/jk_isapi_plugin.c?rev=1196303&r1=1196302&r2=1196303&view=diff
==============================================================================
--- tomcat/jk/trunk/native/iis/jk_isapi_plugin.c (original)
+++ tomcat/jk/trunk/native/iis/jk_isapi_plugin.c Tue Nov  1 21:48:06 2011
@@ -2874,7 +2874,7 @@ static int read_registry_init_data(void)
             return JK_FALSE;
         }
         else {
-            src = &hkey;
+            src = hkey;
         }
     }
     ok = ok && get_config_parameter(src, JK_LOG_FILE_TAG, log_file, sizeof(log_file));
@@ -2953,7 +2953,7 @@ static int get_config_parameter(LPVOID s
             return JK_FALSE;
         }
     } else {
-        return get_registry_config_parameter(*((HKEY*)src), tag, val, sz);
+        return get_registry_config_parameter((HKEY)src, tag, val, sz);
     }
 }
 
@@ -2963,7 +2963,7 @@ static int get_config_int(LPVOID src, co
         return jk_map_get_int((jk_map_t*)src, tag, def);
     } else {
         int val;
-        if (get_registry_config_number(*((HKEY*)src), tag, &val) ) {
+        if (get_registry_config_number(src, tag, &val) ) {
             return val;
         }
         else {
@@ -2978,7 +2978,7 @@ static int get_config_bool(LPVOID src, c
         return jk_map_get_bool((jk_map_t*)src, tag, def);
     } else {
         char tmpbuf[128];
-        if (get_registry_config_parameter(*((HKEY*)src), tag,
+        if (get_registry_config_parameter(src, tag,
                                           tmpbuf, sizeof(tmpbuf))) {
             return jk_get_bool_code(tmpbuf, def);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message