Commit 46035dd2 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Constify.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4833 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f2125096
...@@ -87,10 +87,10 @@ uintmax_t STV_FileSize(int fd, const char *size, unsigned *granularity, ...@@ -87,10 +87,10 @@ uintmax_t STV_FileSize(int fd, const char *size, unsigned *granularity,
/* Synthetic Storage */ /* Synthetic Storage */
void SMS_Init(void); void SMS_Init(void);
extern struct stevedore sma_stevedore; extern const struct stevedore sma_stevedore;
extern struct stevedore smf_stevedore; extern const struct stevedore smf_stevedore;
extern struct stevedore smp_stevedore; extern const struct stevedore smp_stevedore;
#ifdef HAVE_LIBUMEM #ifdef HAVE_LIBUMEM
extern struct stevedore smu_stevedore; extern const struct stevedore smu_stevedore;
#endif #endif
...@@ -541,7 +541,7 @@ smf_free(struct storage *s) ...@@ -541,7 +541,7 @@ smf_free(struct storage *s)
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
struct stevedore smf_stevedore = { const struct stevedore smf_stevedore = {
.magic = STEVEDORE_MAGIC, .magic = STEVEDORE_MAGIC,
.name = "file", .name = "file",
.init = smf_init, .init = smf_init,
......
...@@ -189,7 +189,7 @@ sma_open(const struct stevedore *st) ...@@ -189,7 +189,7 @@ sma_open(const struct stevedore *st)
Lck_New(&sma_sc->sma_mtx); Lck_New(&sma_sc->sma_mtx);
} }
struct stevedore sma_stevedore = { const struct stevedore sma_stevedore = {
.magic = STEVEDORE_MAGIC, .magic = STEVEDORE_MAGIC,
.name = "malloc", .name = "malloc",
.init = sma_init, .init = sma_init,
......
...@@ -1497,7 +1497,7 @@ SMP_Ready(void) ...@@ -1497,7 +1497,7 @@ SMP_Ready(void)
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
struct stevedore smp_stevedore = { const struct stevedore smp_stevedore = {
.magic = STEVEDORE_MAGIC, .magic = STEVEDORE_MAGIC,
.name = "persistent", .name = "persistent",
.init = smp_init, .init = smp_init,
......
...@@ -161,7 +161,7 @@ smu_open(const struct stevedore *st) ...@@ -161,7 +161,7 @@ smu_open(const struct stevedore *st)
AZ(pthread_mutex_init(&smu_mtx, NULL)); AZ(pthread_mutex_init(&smu_mtx, NULL));
} }
struct stevedore smu_stevedore = { const struct stevedore smu_stevedore = {
.magic = STEVEDORE_MAGIC, .magic = STEVEDORE_MAGIC,
.name = "umem", .name = "umem",
.init = smu_init, .init = smu_init,
......
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