From: phk Date: Mon, 23 Feb 2009 11:04:19 +0000 (+0000) Subject: A bit of FlexeLint nitpicking X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cbcb1050b2694907ef62b62911c1c82d8010d07;p=varnish A bit of FlexeLint nitpicking git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3809 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/storage_persistent.c b/varnish-cache/bin/varnishd/storage_persistent.c index be67b4f0..59765819 100644 --- a/varnish-cache/bin/varnishd/storage_persistent.c +++ b/varnish-cache/bin/varnishd/storage_persistent.c @@ -94,7 +94,7 @@ smp_check_hash(void *ptr, off_t len) /*--------------------------------------------------------------------*/ static void -smp_create_sign(struct smp_sc *sc, uint64_t adr, uint64_t len, const char *id) +smp_create_sign(const struct smp_sc *sc, uint64_t adr, uint64_t len, const char *id) { struct smp_sign *ss; @@ -113,7 +113,7 @@ smp_create_sign(struct smp_sc *sc, uint64_t adr, uint64_t len, const char *id) /*--------------------------------------------------------------------*/ static int -smp_check_sign(struct smp_sc *sc, uint64_t adr, const char *id) +smp_check_sign(const struct smp_sc *sc, uint64_t adr, const char *id) { struct smp_sign *ss; @@ -221,13 +221,13 @@ smp_init(struct stevedore *parent, int ac, char * const *av) (void)parent; AZ(av[ac]); -#define SZOF(foo) fprintf(stderr, \ - "sizeof(%s) = %zd = 0x%zx\n", #foo, sizeof(foo), sizeof(foo)); - SZOF(struct smp_ident); - SZOF(struct smp_sign); - SZOF(struct smp_segment); - SZOF(struct smp_object); -#undef SZOF +#define SIZOF(foo) fprintf(stderr, \ + "sizeof(%s) = %zu = 0x%zx\n", #foo, sizeof(foo), sizeof(foo)); + SIZOF(struct smp_ident); + SIZOF(struct smp_sign); + SIZOF(struct smp_segment); + SIZOF(struct smp_object); +#undef SIZOF assert(sizeof(struct smp_ident) == SMP_IDENT_SIZE); assert(sizeof(struct smp_sign) == SMP_SIGN_SIZE);