r3867 - trunk/varnish-cache/lib/libvarnish
phk at projects.linpro.no
phk at projects.linpro.no
Tue Mar 3 13:29:55 CET 2009
Author: phk
Date: 2009-03-03 13:29:55 +0100 (Tue, 03 Mar 2009)
New Revision: 3867
Modified:
trunk/varnish-cache/lib/libvarnish/vlu.c
Log:
Flexelint nitpickery.
Modified: trunk/varnish-cache/lib/libvarnish/vlu.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/vlu.c 2009-03-03 12:23:11 UTC (rev 3866)
+++ trunk/varnish-cache/lib/libvarnish/vlu.c 2009-03-03 12:29:55 UTC (rev 3867)
@@ -62,12 +62,12 @@
l->func = func;
l->priv = priv;
l->bufl = bufsize - 1;
+ l->telnet = -1;
l->buf = malloc(l->bufl + 1);
if (l->buf == NULL) {
FREE_OBJ(l);
l = NULL;
}
- l->telnet = -1;
}
return (l);
}
@@ -119,7 +119,7 @@
/* Return WONT for these */
memcpy(tno, p, 3);
tno[1] = (char)252;
- write(l->telnet, tno, 3);
+ (void)write(l->telnet, tno, 3);
i = 3;
break;
default:
@@ -198,7 +198,7 @@
VLU_Data(const void *ptr, int len, struct vlu *l)
{
const char *p;
- int i;
+ int i = 0;
p = ptr;
CHECK_OBJ_NOTNULL(l, LINEUP_MAGIC);
More information about the varnish-commit
mailing list