struct sess -> struct req move cheat-script
Poul-Henning Kamp
phk at phk.freebsd.dk
Sun Dec 25 11:27:38 CET 2011
Those of you developing VMODS, may be able to use this small
shell-script to edit your files to match the new field
locations:
------------------------------------------------------------------
#!/bin/sh
for w in \
xid restarts esi_level disable_esi hash_ vary_ digest \
doclose exp cur_method handling sendbody wantbody \
err_ director vcl req_bodybytes ws_req t_resp \
htc client_identity ws http
do
find . ../../lib/libvmod_std -name '*.[ch]' -print |
sed '
' |
while read a
do
if grep "[^e]sp->$w" $a ; then
echo "$a"
sed -i "" "s/\([^e]\)sp->$w/\1sp->req->$w/g" $a
fi
done
done
------------------------------------------------------------------
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-dev
mailing list