Commit 0e162288 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Merge r3363: Constifications requested by FlexeLint v9



git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@3598 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 66b649e4
......@@ -49,7 +49,7 @@
#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
......@@ -63,7 +63,7 @@ static struct acceptor *vca_acceptors[] = {
NULL,
};
static struct acceptor *vca_act;
static struct acceptor const *vca_act;
static pthread_t vca_thread_acct;
static struct timeval tv_sndtimeo;
......
......@@ -86,7 +86,7 @@ struct vbp_target {
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";
......
......@@ -66,7 +66,7 @@
#include "cache.h"
#include "stevedore.h"
static struct hash_slinger *hash;
static const struct hash_slinger *hash;
double
HSH_Grace(double g)
......
......@@ -65,7 +65,7 @@
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)
......
......@@ -78,7 +78,7 @@ char *mgt_cc_cmd;
/*
* 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"
"" ;
......
......@@ -40,7 +40,7 @@
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)
......
......@@ -233,8 +233,8 @@ smf_initfile(struct smf_sc *sc, const char *size, int newfile)
/* 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)
......
......@@ -248,7 +248,7 @@ vcc_ExpectCid(struct tokenlist *tl)
static int8_t
vcc_xdig(const char c)
{
static const char *xdigit =
static const char * const xdigit =
"0123456789abcdef"
"0123456789ABCDEF";
const char *p;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment