diff options
author | Eduardo Chappa <chappa@washington.edu> | 2016-10-08 10:01:01 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2016-10-08 10:01:01 -0600 |
commit | 59678f8c7af17eb361f4b9cc9c30a26bff01a1f3 (patch) | |
tree | aa42ff0face7b1c65003e055656370e6136e1ae4 /pith/readfile.c | |
parent | b3cae4deb342505d445af54093c39b0d3a7a8f28 (diff) | |
download | alpine-59678f8c7af17eb361f4b9cc9c30a26bff01a1f3.tar.xz |
* Some code clean up before releasing the next alpha version.
Diffstat (limited to 'pith/readfile.c')
-rw-r--r-- | pith/readfile.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pith/readfile.c b/pith/readfile.c index e918ec99..c4b92b9b 100644 --- a/pith/readfile.c +++ b/pith/readfile.c @@ -78,7 +78,6 @@ our_copy(char *to_file, char *from_file) { STORE_S *in_cert, *out_cert; unsigned char c; - long int size = 0; in_cert = so_get(FileStar, from_file, READ_ACCESS | READ_FROM_LOCALE); if (in_cert == NULL) @@ -93,11 +92,9 @@ our_copy(char *to_file, char *from_file) so_seek(out_cert, 0L, 0); so_truncate(out_cert, 0); - while(so_readc(&c, in_cert) > 0){ + while(so_readc(&c, in_cert) > 0) so_writec(c, out_cert); -// size++; - } -// so_truncate(out_cert, size); + so_give(&in_cert); so_give(&out_cert); |