tsmart sun - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 6b32f96d74cbc0342e88c788af0bc12d813d81f0
parent d7925b13e366aa667f80168728927751edd47151
Author: rsc 
Date:   Fri, 14 Jan 2005 18:33:54 +0000

smart sun

Diffstat:
  M src/cmd/jpg/readppm.c               |      14 ++++++--------

1 file changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/cmd/jpg/readppm.c b/src/cmd/jpg/readppm.c
t@@ -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;                
 }
 
 /*