tsmart sun - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 6b32f96d74cbc0342e88c788af0bc12d813d81f0
(DIR) parent d7925b13e366aa667f80168728927751edd47151
(HTM) Author: rsc <devnull@localhost>
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(-)
---
(DIR) 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;
}
/*