Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

WRK_Flush was renamed to WRW_Flush a long time ago; update some ifdef…

…ed code and comments to match
  • Loading branch information...
commit 91734c47393d6bba8cca4eed265ee78a1b5f92c8 1 parent 4620b27
Tollef Fog Heen authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  bin/varnishd/cache.h
  2. +2 −2 bin/varnishd/cache_wrw.c
2  bin/varnishd/cache.h
View
@@ -255,7 +255,7 @@ struct exp {
struct wrw {
int *wfd;
- unsigned werr; /* valid after WRK_Flush() */
+ unsigned werr; /* valid after WRW_Flush() */
struct iovec *iov;
unsigned siov;
unsigned niov;
4 bin/varnishd/cache_wrw.c
View
@@ -264,7 +264,7 @@ WRW_Sendfile(struct worker *w, int fd, off_t off, unsigned len)
} while (0);
#elif defined(__linux__)
do {
- if (WRK_Flush(w) == 0 &&
+ if (WRW_Flush(w) == 0 &&
sendfile(*wrw->wfd, fd, &off, len) != len)
wrw->werr++;
} while (0);
@@ -293,7 +293,7 @@ WRW_Sendfile(struct worker *w, int fd, off_t off, unsigned len)
} while (0);
#elif defined(__sun) && defined(HAVE_SENDFILE)
do {
- if (WRK_Flush(w) == 0 &&
+ if (WRW_Flush(w) == 0 &&
sendfile(*wrw->wfd, fd, &off, len) != len)
wrw->werr++;
} while (0);
Please sign in to comment.
Something went wrong with that request. Please try again.