]> granicus.if.org Git - apache/commitdiff
c89 fix
authorEric Covener <covener@apache.org>
Tue, 28 Jan 2014 01:49:21 +0000 (01:49 +0000)
committerEric Covener <covener@apache.org>
Tue, 28 Jan 2014 01:49:21 +0000 (01:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1561923 13f79535-47bb-0310-9956-ffa450edef68

modules/slotmem/mod_slotmem_shm.c

index ff8352a3f67e1b15c2198218c78c3cd493e4c940..2b85fa605a8df753cc77e58adb303c88a04b69e0 100644 (file)
@@ -366,9 +366,9 @@ static apr_status_t slotmem_create(ap_slotmem_instance_t **new,
                      "apr_shm_attach() for sure worked...");
     }
     else {
+        apr_size_t dsize = size - AP_SLOTMEM_OFFSET;
         ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(02600)
                      "doing a real apr_shm_create()...");
-        apr_size_t dsize = size - AP_SLOTMEM_OFFSET;
         if (fbased) {
             apr_shm_remove(fname, gpool);
             rv = apr_shm_create(&shm, size, fname, gpool);