Replace while(1) with for(;;), to make it clear they are infinite loops
commit710d90ceb5612daf4a24a9b5a9d607590ccee304
authorNeil Mitchell <ndmitchell@gmail.com>
dateWed 30 Nov 2016, 19:08 (10 years ago)
parentef3dc96
cbits/hexml.c+2−2
@@ -367,7 +367,7 @@ static inline str parse_attrval(document* d)
367367static inline str parse_attributes(document* d)
368368{
369369 int start = d->attrs.used;
370− while (1)
370+ for (;;)
371371 {
372372 trim(d);
373373 str name = parse_name(d);
@@ -467,7 +467,7 @@ str parse_content(document* d)
467467 return start_end(0, 0);
468468 }
469469 skip(d, 2);
470− while (1)
470+ for (;;)
471471 {
472472 if (!find(d, '>'))
473473 {