Commit 9d9175be authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

I like code that compiles


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2111 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 437a7adc
...@@ -58,7 +58,7 @@ static void ...@@ -58,7 +58,7 @@ static void
add_piece(txt t, int kind) add_piece(txt t, int kind)
{ {
printf("K%d \"%.*s\"\n", kind, t.e - t.b, t.b); printf("K%d \"%.*s\"\n", kind, (int)(t.e - t.b), t.b);
} }
static void static void
...@@ -75,7 +75,7 @@ vxml_error(struct sess *sp, const char *p, txt t, size_t off, int i, const char ...@@ -75,7 +75,7 @@ vxml_error(struct sess *sp, const char *p, txt t, size_t off, int i, const char
ellipsis = 1; ellipsis = 1;
} }
q = buf; q = buf;
q += sprintf(buf, "at %d: %s \"", off + (p - t.b), err); q += sprintf(buf, "at %d: %s \"", (int)(off + (p - t.b)), err);
while (i > 0) { while (i > 0) {
if (*p >= ' ' && *p <= '~') { if (*p >= ' ' && *p <= '~') {
*q++ = *p; *q++ = *p;
......
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