Commit 036b0153 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Various flexelint nits.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4440 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7954649c
...@@ -654,7 +654,7 @@ void RES_BuildHttp(struct sess *sp); ...@@ -654,7 +654,7 @@ void RES_BuildHttp(struct sess *sp);
void RES_WriteObj(struct sess *sp); void RES_WriteObj(struct sess *sp);
/* cache_vary.c */ /* cache_vary.c */
struct vsb *VRY_Create(const struct sess *sp, struct http *hp); struct vsb *VRY_Create(const struct sess *sp, const struct http *hp);
int VRY_Match(const struct sess *sp, const unsigned char *vary); int VRY_Match(const struct sess *sp, const unsigned char *vary);
/* cache_vcl.c */ /* cache_vcl.c */
......
...@@ -64,7 +64,7 @@ SVNID("$Id$") ...@@ -64,7 +64,7 @@ SVNID("$Id$")
#include "cache.h" #include "cache.h"
struct vsb * struct vsb *
VRY_Create(const struct sess *sp, struct http *hp) VRY_Create(const struct sess *sp, const struct http *hp)
{ {
char *v, *p, *q, *h, *e; char *v, *p, *q, *h, *e;
struct vsb *sb, *sbh; struct vsb *sb, *sbh;
......
...@@ -203,6 +203,8 @@ ...@@ -203,6 +203,8 @@
-esym(528, vcl_handlingname) // Not referenced -esym(528, vcl_handlingname) // Not referenced
-e641 // Converting enum 'cli_status_e' to int -e641 // Converting enum 'cli_status_e' to int
-e441 // for clause irregularity: loop variable '___' not found in 2nd for expression
// Review all below this line /////////////////////////////////////////////// // Review all below this line ///////////////////////////////////////////////
-e732 // 183 Loss of sign (___) (___ to ___) -e732 // 183 Loss of sign (___) (___ to ___)
......
...@@ -163,8 +163,8 @@ TIM_sleep(double t) ...@@ -163,8 +163,8 @@ TIM_sleep(double t)
{ {
struct timespec ts; struct timespec ts;
ts.tv_sec = floor(t); ts.tv_sec = (time_t)floor(t);
ts.tv_nsec = floor((t - ts.tv_sec) * 1e9); ts.tv_nsec = (long)floor((t - ts.tv_sec) * 1e9);
#ifdef HAVE_NANOSLEEP #ifdef HAVE_NANOSLEEP
(void)nanosleep(&ts, NULL); (void)nanosleep(&ts, NULL);
......
...@@ -100,7 +100,7 @@ static void ...@@ -100,7 +100,7 @@ static void
Emit_Sockaddr(struct tokenlist *tl, const struct token *t_host, Emit_Sockaddr(struct tokenlist *tl, const struct token *t_host,
const char *port) const char *port)
{ {
struct addrinfo *res, *res0, hint; struct addrinfo *res, *res0, *res1, hint;
int n4, n6, len, error, retval; int n4, n6, len, error, retval;
const char *emit, *multiple; const char *emit, *multiple;
unsigned char *u; unsigned char *u;
...@@ -138,9 +138,9 @@ Emit_Sockaddr(struct tokenlist *tl, const struct token *t_host, ...@@ -138,9 +138,9 @@ Emit_Sockaddr(struct tokenlist *tl, const struct token *t_host,
"Please specify which exact address " "Please specify which exact address "
"you want to use, we found these:\n", "you want to use, we found these:\n",
PF(t_host), multiple); PF(t_host), multiple);
for (res = res0; res != NULL; res = res->ai_next) { for (res1 = res0; res1 != NULL; res1 = res1->ai_next) {
error = getnameinfo(res->ai_addr, error = getnameinfo(res1->ai_addr,
res->ai_addrlen, hbuf, sizeof hbuf, res1->ai_addrlen, hbuf, sizeof hbuf,
NULL, 0, NI_NUMERICHOST); NULL, 0, NI_NUMERICHOST);
AZ(error); AZ(error);
vsb_printf(tl->sb, "\t%s\n", hbuf); vsb_printf(tl->sb, "\t%s\n", hbuf);
...@@ -190,7 +190,7 @@ Emit_Sockaddr(struct tokenlist *tl, const struct token *t_host, ...@@ -190,7 +190,7 @@ Emit_Sockaddr(struct tokenlist *tl, const struct token *t_host,
*/ */
static void static void
vcc_EmitBeIdent(struct tokenlist *tl, struct vsb *v, vcc_EmitBeIdent(const struct tokenlist *tl, struct vsb *v,
int serial, const struct token *first, const struct token *last) int serial, const struct token *first, const struct token *last)
{ {
......
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