aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/jpg
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-14 18:33:54 +0000
committerrsc <devnull@localhost>2005-01-14 18:33:54 +0000
commit6b32f96d74cbc0342e88c788af0bc12d813d81f0 (patch)
tree48d3a11763df93209a6b429c929a9df36b89d774 /src/cmd/jpg
parentd7925b13e366aa667f80168728927751edd47151 (diff)
downloadplan9port-6b32f96d74cbc0342e88c788af0bc12d813d81f0.tar.gz
plan9port-6b32f96d74cbc0342e88c788af0bc12d813d81f0.tar.bz2
plan9port-6b32f96d74cbc0342e88c788af0bc12d813d81f0.zip
smart sun
Diffstat (limited to 'src/cmd/jpg')
-rw-r--r--src/cmd/jpg/readppm.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/cmd/jpg/readppm.c b/src/cmd/jpg/readppm.c
index d9b54293..569025fd 100644
--- a/src/cmd/jpg/readppm.c
+++ b/src/cmd/jpg/readppm.c
@@ -16,14 +16,12 @@ Bgetch(Biobuf *b)
{
int c;
- for(;;) {
- c = Bgetc(b);
- if(c == '#') {
- while((c = Bgetc(b)) != Beof && c != '\n')
- ;
- }
- return c;
- }
+ c = Bgetc(b);
+ if(c == '#') {
+ while((c = Bgetc(b)) != Beof && c != '\n')
+ ;
+ }
+ return c;
}
/*