summaryrefslogtreecommitdiffstats
path: root/usr.sbin/httpd/src
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2008-05-19 18:56:41 +0000
committerderaadt <deraadt@openbsd.org>2008-05-19 18:56:41 +0000
commitf466eb6d95ea03fbb4c89ed0caa9ae70e736b47d (patch)
tree8a0bf21f5bdd9f00933a64dd564525982e9663d1 /usr.sbin/httpd/src
parentChange all remaining MD uses of MALLOC and FREE into proper malloc() and (diff)
downloadwireguard-openbsd-f466eb6d95ea03fbb4c89ed0caa9ae70e736b47d.tar.xz
wireguard-openbsd-f466eb6d95ea03fbb4c89ed0caa9ae70e736b47d.zip
Permit compilation on 3 architectures which show that this diff was
not tested on them. Older gcc's require decl before code, and this is supposed to be portable code in that sense.
Diffstat (limited to 'usr.sbin/httpd/src')
-rw-r--r--usr.sbin/httpd/src/modules/standard/mod_usertrack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/httpd/src/modules/standard/mod_usertrack.c b/usr.sbin/httpd/src/modules/standard/mod_usertrack.c
index 37abaf4f314..7dd6f193bba 100644
--- a/usr.sbin/httpd/src/modules/standard/mod_usertrack.c
+++ b/usr.sbin/httpd/src/modules/standard/mod_usertrack.c
@@ -148,7 +148,7 @@ static char * make_cookie_id(char * buffer, int bufsize, request_rec *r,
struct timeval tv;
struct timezone tz = {0, 0};
char hbuf[NI_MAXHOST];
-
+ const char *rname;
cookie_dir_rec *dcfg;
long reqtime = (long) r->request_time;
@@ -158,7 +158,7 @@ static char * make_cookie_id(char * buffer, int bufsize, request_rec *r,
r->connection->remote_addr.ss_len,
hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST);
- const char *rname = ap_get_remote_host(r->connection, r->per_dir_config,
+ rname = ap_get_remote_host(r->connection, r->per_dir_config,
REMOTE_NAME);
dcfg = ap_get_module_config(r->per_dir_config, &usertrack_module);