]> granicus.if.org Git - apache/commitdiff
axe a couple of unused vars, mark a function as static
authorJeff Trawick <trawick@apache.org>
Thu, 7 Apr 2011 00:07:50 +0000 (00:07 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 7 Apr 2011 00:07:50 +0000 (00:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1089690 13f79535-47bb-0310-9956-ffa450edef68

os/win32/ap_regkey.c

index 3951f90a6084961335104d8a526c85a3db7f4b5a..e080ab4f1fd970fee2beef3b0be45e9de82c409a 100644 (file)
@@ -43,7 +43,7 @@ AP_DECLARE(const ap_regkey_t *) ap_regkey_const(int i)
 }
 
 
-apr_status_t regkey_cleanup(void *key)
+static apr_status_t regkey_cleanup(void *key)
 {
     ap_regkey_t *regkey = key;
 
@@ -468,8 +468,6 @@ AP_DECLARE(apr_status_t) ap_regkey_value_array_get(apr_array_header_t **result,
     {
         apr_size_t alloclen;
         apr_size_t valuelen = strlen(valuename) + 1;
-        apr_size_t wvallen = 256;
-        apr_wchar_t *wvalue = (apr_wchar_t *)value;
 
         /* ###: deliberately overallocate plus two extra nulls.
          * We could precalculate the exact buffer here instead, the question