#include "cache.h"
#include "cache_acceptor.h"
-static struct acceptor *vca_acceptors[] = {
+static struct acceptor * const vca_acceptors[] = {
#if defined(HAVE_KQUEUE)
&acceptor_kqueue,
#endif
NULL,
};
-static struct acceptor *vca_act;
+static struct acceptor const *vca_act;
static pthread_t vca_thread_acct;
static struct timeval tv_sndtimeo;
static VTAILQ_HEAD(, vbp_target) vbp_list =
VTAILQ_HEAD_INITIALIZER(vbp_list);
-static char default_request[] =
+static const char default_request[] =
"GET / HTTP/1.1\r\n"
"Connection: close\r\n"
"\r\n";
#include "cache.h"
#include "stevedore.h"
-static struct hash_slinger *hash;
+static const struct hash_slinger *hash;
double
HSH_Grace(double g)
LOGMTX2(ax, HTTP_HDR_FIRST, Header), \
}
-static enum shmlogtag logmtx[][HTTP_HDR_FIRST + 1] = {
+static const enum shmlogtag logmtx[][HTTP_HDR_FIRST + 1] = {
[HTTP_Rx] = LOGMTX1(Rx),
[HTTP_Tx] = LOGMTX1(Tx),
[HTTP_Obj] = LOGMTX1(Obj)
/*
* Keep this in synch with man/vcl.7 and etc/default.vcl!
*/
-static const char *default_vcl =
+static const char * const default_vcl =
#include "default_vcl.h"
"" ;
static VTAILQ_HEAD(, stevedore) stevedores =
VTAILQ_HEAD_INITIALIZER(stevedores);
-static struct stevedore * volatile stv_next;
+static const struct stevedore * volatile stv_next;
struct storage *
STV_alloc(struct sess *sp, size_t size)
/* XXX: force block allocation here or in open ? */
}
-static char default_size[] = "50%";
-static char default_filename[] = ".";
+static const char default_size[] = "50%";
+static const char default_filename[] = ".";
static void
smf_init(struct stevedore *parent, int ac, char * const *av)
static int8_t
vcc_xdig(const char c)
{
- static const char *xdigit =
+ static const char * const xdigit =
"0123456789abcdef"
"0123456789ABCDEF";
const char *p;