[master] 78ee53e Whitespace OCD
Federico G. Schwindt
fgsch at lodoss.net
Fri Aug 18 23:22:11 CEST 2017
commit 78ee53e3fce16cbed04bb193ef140a1ba358ad82
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Fri Aug 18 21:44:56 2017 +0100
Whitespace OCD
diff --git a/bin/varnishd/http2/cache_http2_session.c b/bin/varnishd/http2/cache_http2_session.c
index adbe94c..e70341f 100644
--- a/bin/varnishd/http2/cache_http2_session.c
+++ b/bin/varnishd/http2/cache_http2_session.c
@@ -327,7 +327,7 @@ h2_new_session(struct worker *wrk, void *arg)
AZ(pthread_cond_signal(r2->cond));
}
AZ(pthread_cond_signal(h2->cond));
- while(1) {
+ while (1) {
again = 0;
VTAILQ_FOREACH_SAFE(r2, &h2->streams, list, r22) {
if (r2 != h2->req0) {
diff --git a/doc/sphinx/installation/install.rst b/doc/sphinx/installation/install.rst
index 5ab087f..d65588d 100644
--- a/doc/sphinx/installation/install.rst
+++ b/doc/sphinx/installation/install.rst
@@ -181,7 +181,7 @@ tea while it runs, it usually takes a couple of minutes::
make check
Don't worry if one or two tests fail. Some of the tests are a
-bit too timing sensitive (Please tell us which so we can fix them).
+bit too timing sensitive (Please tell us which so we can fix them).
However, if a lot of them fail, and in particular if the `b00000.vtc` test
fails, something is horribly wrong. You will get nowhere without
figuring this one out.
diff --git a/doc/sphinx/phk/VSV00001.rst b/doc/sphinx/phk/VSV00001.rst
index 70d69b7..8d3c686 100644
--- a/doc/sphinx/phk/VSV00001.rst
+++ b/doc/sphinx/phk/VSV00001.rst
@@ -111,7 +111,7 @@ who contribute materially to the Varnish Project in some way,
(documentation, code, machines, testing, meeting-rooms...) or
people we judge should be there for some other good reason.
-If you feel you should be on the VIVU list, drop me an email,
+If you feel you should be on the VIVU list, drop me an email,
don't forget to include your PGP key.
VQS - Varnish Quality Software
diff --git a/lib/libvarnishapi/flint.lnt b/lib/libvarnishapi/flint.lnt
index 40439a5..f94af2f 100644
--- a/lib/libvarnishapi/flint.lnt
+++ b/lib/libvarnishapi/flint.lnt
@@ -1,8 +1,8 @@
+fan
--esym(759, VJSN_*) // could be moved hdr->mod
+-esym(759, VJSN_*) // could be moved hdr->mod
-esym(765, VJSN_*) // could be made static
--esym(759, vjsn_dump) // could be moved hdr->mod
+-esym(759, vjsn_dump) // could be moved hdr->mod
-esym(765, vjsn_dump) // could be made static
-esym(714, vjsn_dump) // not ref
-esym(788, vex_rhs_e::*)
diff --git a/lib/libvarnishapi/vjsn.c b/lib/libvarnishapi/vjsn.c
index 1ad4fec..65bc3b3 100644
--- a/lib/libvarnishapi/vjsn.c
+++ b/lib/libvarnishapi/vjsn.c
@@ -138,7 +138,7 @@ vjsn_unumber(struct vjsn *js)
VJSN_EXPECT(js, '\\', 0);
VJSN_EXPECT(js, 'u', 0);
- for(i = 0; i < 4; i++) {
+ for (i = 0; i < 4; i++) {
u <<= 4;
c = *js->ptr;
if (c >= '0' && c <= '9')
@@ -222,7 +222,7 @@ vjsn_string(struct vjsn *js)
*p++ = *js->ptr++;
continue;
}
- switch(js->ptr[1]) {
+ switch (js->ptr[1]) {
case '\\':
case '/':
case '"': *p++ = js->ptr[1]; js->ptr += 2; break;
@@ -233,7 +233,7 @@ vjsn_string(struct vjsn *js)
case 'r': *p++ = 0x0d; js->ptr += 2; break;
case 'u':
vjsn_unicode(js, &p);
- if(js->err != NULL)
+ if (js->err != NULL)
return(NULL);
break;
default:
@@ -275,7 +275,7 @@ vjsn_object(struct vjsn *js)
jsve->name = s;
VTAILQ_INSERT_TAIL(&jsv->children, jsve, list);
vjsn_skip_ws(js);
- if(*js->ptr == '}')
+ if (*js->ptr == '}')
break;
VJSN_EXPECT(js, ',', jsv);
}
@@ -306,7 +306,7 @@ vjsn_array(struct vjsn *js)
CHECK_OBJ_NOTNULL(jsve, VJSN_VAL_MAGIC);
VTAILQ_INSERT_TAIL(&jsv->children, jsve, list);
vjsn_skip_ws(js);
- if(*js->ptr == ']')
+ if (*js->ptr == ']')
break;
VJSN_EXPECT(js, ',', jsv);
}
@@ -917,9 +917,9 @@ main(int argc, char **argv)
(void)argc;
(void)argv;
- for(s = good; *s != NULL; s++)
+ for (s = good; *s != NULL; s++)
test_good(*s);
- for(s = bad; *s != NULL; s++)
+ for (s = bad; *s != NULL; s++)
test_bad(*s);
/*
More information about the varnish-commit
mailing list