Commit 8bc77f53 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Remove unused struct size macros



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4125 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent d2855edf
......@@ -411,9 +411,6 @@ smp_init(struct stevedore *parent, int ac, char * const *av)
#undef SIZOF
assert(sizeof(struct smp_ident) == SMP_IDENT_SIZE);
/* XXX: assert(sizeof(struct smp_sign) == SMP_SIGN_SIZE); */
/* XXX: assert(sizeof(struct smp_object) == SMP_OBJECT_SIZE); */
/* XXX: assert(sizeof smp_object.hash == DIGEST_LEN); */
/* Allocate softc */
ALLOC_OBJ(sc, SMP_SC_MAGIC);
......
......@@ -96,7 +96,11 @@ struct smp_ident {
#define SMP_END_STUFF 5
};
#define SMP_IDENT_SIZE (32 + 4 + 4 + 4 + 4 + 4 + 8 + 4 + 6 * 8)
/*
* The size of smp_ident should be fixed and constant across all platforms.
* We enforce that with the following #define and an assert in smp_init()
*/
#define SMP_IDENT_SIZE 112
#define SMP_IDENT_STRING "Varnish Persistent Storage Silo"
......@@ -111,7 +115,6 @@ struct smp_sign {
uint64_t length; /* NB: Must be last */
};
#define SMP_SIGN_SIZE (8 + 4 + 8 + 8)
#define SMP_SIGN_SPACE (sizeof(struct smp_sign) + SHA256_LEN)
/*
......@@ -123,8 +126,6 @@ struct smp_segptr {
uint64_t length;
};
#define SMP_SEGMENT_SIZE (8+8)
/*
* Ban description
*/
......@@ -147,8 +148,6 @@ struct smp_object {
uint64_t len; /* XXX: madvise */
};
#define SMP_OBJECT_SIZE (32 + 8 + 8 + sizeof(void *) + 8)
/*
* Segment
*/
......
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