diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-05-19 18:56:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-05-19 18:56:42 +0000 |
commit | 8d7ba68abb3d8e361a7ea948d0e60d45a7fcdd0c (patch) | |
tree | 510df9bad919936f002a258fc21f48e51f4d8c71 /usr.sbin | |
parent | 5d2ff6359ca4a53dc1c448b39265f3ecd2ed8429 (diff) |
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')
-rw-r--r-- | usr.sbin/httpd/src/modules/standard/mod_usertrack.c | 4 |
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); |