Commit 9337ff49 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

64bit changes


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@754 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2ae026b8
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
* write the session pointer to a pipe which the event engine monitors. * write the session pointer to a pipe which the event engine monitors.
*/ */
#define ACCEPTOR_USE_POLL #undef ACCEPTOR_USE_POLL
#undef ACCEPTOR_USE_KQUEUE #define ACCEPTOR_USE_KQUEUE
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
......
...@@ -63,8 +63,8 @@ setup_hash(const char *sflag) ...@@ -63,8 +63,8 @@ setup_hash(const char *sflag)
} else if (!cmp_hash(&hsl_slinger, sflag, p)) { } else if (!cmp_hash(&hsl_slinger, sflag, p)) {
hp = &hsl_slinger; hp = &hsl_slinger;
} else { } else {
fprintf(stderr, "Unknown hash method \"%*.*s\"\n", fprintf(stderr, "Unknown hash method \"%.*s\"\n",
p - sflag, p - sflag, sflag); (int)(p - sflag), sflag);
exit (2); exit (2);
} }
heritage.hash = hp; heritage.hash = hp;
...@@ -108,8 +108,8 @@ setup_storage(const char *sflag) ...@@ -108,8 +108,8 @@ setup_storage(const char *sflag)
} else if (!cmp_storage(&smf_stevedore, sflag, p)) { } else if (!cmp_storage(&smf_stevedore, sflag, p)) {
stp = &smf_stevedore; stp = &smf_stevedore;
} else { } else {
fprintf(stderr, "Unknown storage method \"%*.*s\"\n", fprintf(stderr, "Unknown storage method \"%.*s\"\n",
p - sflag, p - sflag, sflag); (int)(p - sflag), sflag);
exit (2); exit (2);
} }
heritage.stevedore = malloc(sizeof *heritage.stevedore); heritage.stevedore = malloc(sizeof *heritage.stevedore);
......
...@@ -420,7 +420,7 @@ HeaderVar(struct tokenlist *tl, struct token *t, struct var *vh) ...@@ -420,7 +420,7 @@ HeaderVar(struct tokenlist *tl, struct token *t, struct var *vh)
v->name = p; v->name = p;
v->fmt = STRING; v->fmt = STRING;
asprintf(&p, "VRT_GetHdr(sp, \"\\%03o%s:\")", asprintf(&p, "VRT_GetHdr(sp, \"\\%03o%s:\")",
strlen(v->name + vh->len) + 1, v->name + vh->len); (unsigned)(strlen(v->name + vh->len) + 1), v->name + vh->len);
assert(p != NULL); assert(p != NULL);
v->rname = p; v->rname = p;
return (v); return (v);
......
...@@ -180,9 +180,8 @@ vcc_AddToken(struct tokenlist *tl, unsigned tok, const char *b, const char *e) ...@@ -180,9 +180,8 @@ vcc_AddToken(struct tokenlist *tl, unsigned tok, const char *b, const char *e)
TAILQ_INSERT_TAIL(&tl->tokens, t, list); TAILQ_INSERT_TAIL(&tl->tokens, t, list);
tl->t = t; tl->t = t;
if (0) { if (0) {
fprintf(stderr, "[%s %*.*s] ", fprintf(stderr, "[%s %.*s] ",
vcl_tnames[tok], vcl_tnames[tok],(int)(e - b), b);
e - b, e - b, b);
if (tok == EOI) if (tok == EOI)
fprintf(stderr, "\n"); fprintf(stderr, "\n");
} }
......
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