diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-03-05 18:37:40 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-03-05 18:37:40 +1300 |
commit | fdd97fb951e439574f00d1d64bf166394282c36c (patch) | |
tree | d77fa3f2dd1313840540fa9699df6bea965ea5f3 | |
parent | Switch to fopen/fread etc (diff) | |
download | cat-fdd97fb951e439574f00d1d64bf166394282c36c.tar.gz cat-fdd97fb951e439574f00d1d64bf166394282c36c.zip |
Correct type for bytes-read
-rw-r--r-- | cfp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2,7 +2,7 @@ /* Function writes the contents of an opened file descriptor to stdout */ int cfp(FILE *fp, void *buf) { - int br; + size_t br; /* Use the buffer to read the file in blocks, writing each block to stdout * as we go */ |