diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-04-09 17:33:31 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-04-09 17:57:27 +0200 |
| commit | deec79ce61b8661d3ad76f3ecc10a80d1ce19cdd (patch) | |
| tree | 34a8863335a8eee38ec28419812e99a3c27cef64 /src/blind-flip.c | |
| parent | Add blind-skip-pattern (diff) | |
| download | blind-deec79ce61b8661d3ad76f3ecc10a80d1ce19cdd.tar.gz blind-deec79ce61b8661d3ad76f3ecc10a80d1ce19cdd.tar.bz2 blind-deec79ce61b8661d3ad76f3ecc10a80d1ce19cdd.tar.xz | |
Clean up
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/blind-flip.c')
| -rw-r--r-- | src/blind-flip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blind-flip.c b/src/blind-flip.c index b37a9d8..3dd108d 100644 --- a/src/blind-flip.c +++ b/src/blind-flip.c @@ -11,7 +11,7 @@ int main(int argc, char *argv[]) { struct stream stream; - size_t n, ptr, row_size; + size_t n, rown, ptr; char *buf; UNOFLAGS(argc); @@ -23,12 +23,12 @@ main(int argc, char *argv[]) efflush(stdout, "<stdout>"); echeck_frame_size(stream.width, stream.height, stream.pixel_size, 0, stream.file); - n = stream.height * (row_size = stream.width * stream.pixel_size); + n = stream.height * (rown = stream.width * stream.pixel_size); buf = emalloc(n); while (eread_frame(&stream, buf, n)) for (ptr = n; ptr;) - ewriteall(STDOUT_FILENO, buf + (ptr -= row_size), row_size, "<stdout>"); + ewriteall(STDOUT_FILENO, buf + (ptr -= rown), rown, "<stdout>"); free(buf); return 0; |
