Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +1 1  bin/varnishd/cache.h
  2. +2 2 bin/varnishd/cache_wrw.c
2  bin/varnishd/cache.h
@@ -255,7 +255,7 @@ struct exp {
255 255
256 256 struct wrw {
257 257 int *wfd;
258   - unsigned werr; /* valid after WRK_Flush() */
  258 + unsigned werr; /* valid after WRW_Flush() */
259 259 struct iovec *iov;
260 260 unsigned siov;
261 261 unsigned niov;
4 bin/varnishd/cache_wrw.c
@@ -264,7 +264,7 @@ WRW_Sendfile(struct worker *w, int fd, off_t off, unsigned len)
264 264 } while (0);
265 265 #elif defined(__linux__)
266 266 do {
267   - if (WRK_Flush(w) == 0 &&
  267 + if (WRW_Flush(w) == 0 &&
268 268 sendfile(*wrw->wfd, fd, &off, len) != len)
269 269 wrw->werr++;
270 270 } while (0);
@@ -293,7 +293,7 @@ WRW_Sendfile(struct worker *w, int fd, off_t off, unsigned len)
293 293 } while (0);
294 294 #elif defined(__sun) && defined(HAVE_SENDFILE)
295 295 do {
296   - if (WRK_Flush(w) == 0 &&
  296 + if (WRW_Flush(w) == 0 &&
297 297 sendfile(*wrw->wfd, fd, &off, len) != len)
298 298 wrw->werr++;
299 299 } while (0);

0 comments on commit 91734c4

Please sign in to comment.
Something went wrong with that request. Please try again.