commit acdac112852f822fed95fd6da7f0d3b80fa81af0
Author: Hiltjo Posthuma <[email protected]>
Date: Sat Apr 5 11:56:40 2014 +0200
mount: style for loop in catfile()
Signed-off-by: Hiltjo Posthuma <[email protected]>
diff --git a/mount.c b/mount.c
index 3953d00..5e0bcff 100644
--- a/mount.c
+++ b/mount.c
@@ -107,9 +107,7 @@ catfile(FILE *in, FILE *out)
char buf[BUFSIZ];
size_t bytesread;
- while(1) {
- if(feof(in))
- break;
+ while(!feof(in)) {
bytesread = fread(buf, 1, sizeof(buf), in);
if(ferror(in))
return 0;