r3809 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Mon Feb 23 12:04:19 CET 2009
Author: phk
Date: 2009-02-23 12:04:19 +0100 (Mon, 23 Feb 2009)
New Revision: 3809
Modified:
trunk/varnish-cache/bin/varnishd/storage_persistent.c
Log:
A bit of FlexeLint nitpicking
Modified: trunk/varnish-cache/bin/varnishd/storage_persistent.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_persistent.c 2009-02-23 10:46:50 UTC (rev 3808)
+++ trunk/varnish-cache/bin/varnishd/storage_persistent.c 2009-02-23 11:04:19 UTC (rev 3809)
@@ -94,7 +94,7 @@
/*--------------------------------------------------------------------*/
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 @@
/*--------------------------------------------------------------------*/
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 @@
(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);
More information about the varnish-commit
mailing list