forked from varnishcache/varnish-cache
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated with Coccinelle, so the semantic patch could be reused in the vtest project. Closes varnishcache#3238 Conflicts: lib/libvcc/vcc_compile.c bin/varnishd/proxy/cache_proxy_proto.c
- Loading branch information
1 parent
34d866d
commit d0ae65b
Showing
10 changed files
with
58 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* This patch fixes the order of VSB_tofile arguments. | ||
*/ | ||
|
||
@@ | ||
idexpression struct vsb *vsb; | ||
idexpression int fd; | ||
@@ | ||
|
||
- VSB_tofile(fd, vsb) | ||
+ VSB_tofile(vsb, fd) | ||
|
||
@@ | ||
idexpression struct vsb[] vsb; | ||
idexpression int fd; | ||
@@ | ||
|
||
- VSB_tofile(fd, vsb) | ||
+ VSB_tofile(vsb, fd) | ||
|
||
@@ | ||
idexpression struct vsb *vsb; | ||
expression fd; | ||
@@ | ||
|
||
- VSB_tofile(fd, vsb) | ||
+ VSB_tofile(vsb, fd) | ||
|
||
/* Opportunistic fallback */ | ||
|
||
@@ | ||
idexpression int fd; | ||
expression vsb; | ||
@@ | ||
|
||
- VSB_tofile(fd, vsb) | ||
+ VSB_tofile(vsb, fd) | ||
|
||
/* Opportunistic last resort */ | ||
|
||
@@ | ||
expression fd, other; | ||
@@ | ||
|
||
- VSB_tofile(fd, other->vsb) | ||
+ VSB_tofile(other->vsb, fd) |