char *t;
apr_table_t *hbt = apr_table_make(pool, 10);
apr_bucket_alloc_t *ba = apr_bucket_alloc_create(pool);
- apr_bucket_brigade *bb = apr_brigade_create(pool, ba);
- apr_bucket_brigade *tmpbb = apr_brigade_create(pool, ba);
+ apr_bucket_brigade *bb;
+ apr_bucket_brigade *tmpbb;
+
rv = apr_file_info_get(&fi, APR_FINFO_SIZE | APR_FINFO_MTIME, fpin);
if (rv) {
ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ctx->s,
/* skip parameters, XXX: ;q=foo evaluation? */
while (*accepts == ';') {
++accepts;
- token = ap_get_token(r->pool, &accepts, 1);
+ ap_get_token(r->pool, &accepts, 1);
}
/* retrieve next token */
{
int x;
apr_size_t rv;
- char *name = r->uri;
char *tp;
int static_columns = !!(autoindex_opts & SUPPRESS_COLSORT);
apr_pool_t *scratch;
char *breakrow = "";
apr_pool_create(&scratch, r->pool);
- if (name[0] == '\0') {
- name = "/";
- }
name_width = d->name_width;
desc_width = d->desc_width;
apr_os_pipe_put_ex(&tempsock, &sd, 1, r->pool);
apr_pool_cleanup_kill(r->pool, (void *)((long)sd), close_unix_socket);
- if ((argv0 = strrchr(r->filename, '/')) != NULL) {
- argv0++;
- }
- else {
- argv0 = r->filename;
- }
-
/* Transfer any put/post args, CERN style...
* Note that we already ignore SIGPIPE in the core server.
*/
p = NULL;
bestthistag = NULL;
longest_lang_range_len = 0;
- alen = 0;
/* lang is the variant's language-tag, which is the one
* we are allowed to use the prefix of in HTTP/1.1
}
if (nbytes == 1 && !found_nl) {
- i = 0;
continue;
}
}
while ( i < rewriterules->nelts
&& s > 0) {
i++;
- p = &entries[i];
s--;
}
}
continue;
}
/* deal with %-N+.-M+ -- syntax is already checked */
- N = M = 0; /* value */
+ M = 0; /* value */
Np = Mp = 0; /* is there a plus? */
Nd = Md = 0; /* is there a dash? */
if (*map == '-') ++map, Nd = 1;
char base = 'X';
int modifier = 0;
int num = 0;
- int factor = 0;
+ int factor;
/* 0.0.4 compatibility?
*/
return apr_pstrcat(p, "bad expires code, missing <type>", NULL);
}
- factor = 0;
if (!strncasecmp(word, "years", 1)) {
factor = 60 * 60 * 24 * 365;
}
char *expr;
sei_cfg_rec *sconf;
sei_entry *new;
- sei_entry *entries;
const char *err;
/*
? (sei_cfg_rec *) mconfig
: (sei_cfg_rec *) ap_get_module_config(cmd->server->module_config,
&setenvif_module);
- entries = (sei_entry *) sconf->conditionals->elts;
/* get expr */
expr = ap_getword_conf(cmd->pool, &args);
if (!*expr) {
/* we'll use a temporal buffer to avoid uuencoding the possible internal
* paddings of the original structure */
x = (unsigned char *) &paddedbuf;
- y = (unsigned char *) &new_unique_id;
k = 0;
for (i = 0; i < UNIQUE_ID_REC_MAX; i++) {
y = ((unsigned char *) &new_unique_id) + unique_id_rec_offset[i];
for (bucket = APR_BRIGADE_FIRST(bb);
bucket != APR_BRIGADE_SENTINEL(bb);
bucket = next) {
- int did_sendfile = 0;
next = APR_BUCKET_NEXT(bucket);
#if APR_HAS_SENDFILE
if (APR_BUCKET_IS_FILE(bucket)) {
if ((apr_file_flags_get(fd) & APR_SENDFILE_ENABLED) &&
(bucket->length >= AP_MIN_SENDFILE_BYTES)) {
- did_sendfile = 1;
if (nvec > 0) {
(void)apr_socket_opt_set(s, APR_TCP_NOPUSH, 1);
rv = writev_nonblocking(s, vec, nvec, bb, bytes_written, c);
}
}
#endif /* APR_HAS_SENDFILE */
- if (!did_sendfile && !APR_BUCKET_IS_METADATA(bucket)) {
+ /* didn't sendfile */
+ if (!APR_BUCKET_IS_METADATA(bucket)) {
const char *data;
apr_size_t length;
rv = apr_bucket_read(bucket, &data, &length, APR_BLOCK_READ);
apr_pool_create(&p, pool);
h = apr_hash_make(p);
fd = NULL;
- skip = 0;
deviation = MAXDEVIATION * APR_USEC_PER_SEC;
if (apr_dir_open(&dir, path, p) != APR_SUCCESS) {