Permalink
Browse files

o smallish whitespace changes.

  • Loading branch information...
1 parent ba7fde8 commit 453489ff6102a95dda87c1707d7774c6e88accac @hzeller committed Sep 13, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 convolver.cc
View
5 convolver.cc
@@ -51,12 +51,10 @@ class PassThroughFilter : public FileFilter {
PassThroughFilter(int filedes, const char *path) : filedes_(filedes) {
fprintf(stderr, "Creating PassThrough filter for '%s'\n", path);
}
-
virtual int Read(char *buf, size_t size, off_t offset) {
const int result = pread(filedes_, buf, size, offset);
return result == -1 ? -errno : result;
}
-
virtual int Stat(struct stat *st) {
return fstat(filedes_, st);
}
@@ -134,8 +132,7 @@ class SndFileFilter :
// Report a bit bigger size which is less harmful than programs
// reading short.
new_size += 16384;
- if (new_size > file_stat_.st_size) {
- // Only report new size if strictly larger.
+ if (new_size > file_stat_.st_size) { // Only go forward in size.
//fprintf(stderr, "(est:%ld)", new_size);
file_stat_.st_size = new_size;
}

0 comments on commit 453489f

Please sign in to comment.