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);
void RES_WriteObj(struct sess *sp);
/* 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);
/* cache_vcl.c */
......
......@@ -64,7 +64,7 @@ SVNID("$Id$")
#include "cache.h"
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;
struct vsb *sb, *sbh;
......
......@@ -203,6 +203,8 @@
-esym(528, vcl_handlingname) // Not referenced
-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 ///////////////////////////////////////////////
-e732 // 183 Loss of sign (___) (___ to ___)
......
......@@ -163,8 +163,8 @@ TIM_sleep(double t)
{
struct timespec ts;
ts.tv_sec = floor(t);
ts.tv_nsec = floor((t - ts.tv_sec) * 1e9);
ts.tv_sec = (time_t)floor(t);
ts.tv_nsec = (long)floor((t - ts.tv_sec) * 1e9);
#ifdef HAVE_NANOSLEEP
(void)nanosleep(&ts, NULL);
......
......@@ -100,7 +100,7 @@ static void
Emit_Sockaddr(struct tokenlist *tl, const struct token *t_host,
const char *port)
{
struct addrinfo *res, *res0, hint;
struct addrinfo *res, *res0, *res1, hint;
int n4, n6, len, error, retval;
const char *emit, *multiple;
unsigned char *u;
......@@ -138,9 +138,9 @@ Emit_Sockaddr(struct tokenlist *tl, const struct token *t_host,
"Please specify which exact address "
"you want to use, we found these:\n",
PF(t_host), multiple);
for (res = res0; res != NULL; res = res->ai_next) {
error = getnameinfo(res->ai_addr,
res->ai_addrlen, hbuf, sizeof hbuf,
for (res1 = res0; res1 != NULL; res1 = res1->ai_next) {
error = getnameinfo(res1->ai_addr,
res1->ai_addrlen, hbuf, sizeof hbuf,
NULL, 0, NI_NUMERICHOST);
AZ(error);
vsb_printf(tl->sb, "\t%s\n", hbuf);
......@@ -190,7 +190,7 @@ Emit_Sockaddr(struct tokenlist *tl, const struct token *t_host,
*/
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)
{
......
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