diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-11-05 19:29:17 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-11-05 19:29:17 +0000 |
commit | 35bef7fefd6e8fabf759da7c54d8003210661896 (patch) | |
tree | dff4684b0a630849c27a36dd33b847923baddc85 /src/common/util.h | |
parent | ad6971d3b372ef2fd0727a0665ea29fd9c6862e0 (diff) | |
download | tor-35bef7fefd6e8fabf759da7c54d8003210661896.tar.gz tor-35bef7fefd6e8fabf759da7c54d8003210661896.zip |
make read_all and write_all return ssize_t.
svn:r17194
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.h b/src/common/util.h index ea890d988c..4f8182949c 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -232,8 +232,8 @@ int ftime_definitely_after(time_t now, time_t when); int ftime_definitely_before(time_t now, time_t when); /* File helpers */ -int write_all(int fd, const char *buf, size_t count, int isSocket); -int read_all(int fd, char *buf, size_t count, int isSocket); +ssize_t write_all(int fd, const char *buf, size_t count, int isSocket); +ssize_t read_all(int fd, char *buf, size_t count, int isSocket); /** Return values from file_status(); see that function's documentation * for details. */ |