summaryrefslogtreecommitdiff
path: root/src/or/microdesc.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-29 10:16:57 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-29 12:21:52 -0400
commit40199b180e53aa36477c75782be51bd689189287 (patch)
tree793039bc3af07c9f006a7297c214f54e19d9cd61 /src/or/microdesc.c
parent0362cdc169a785a386d3c60d354cd34fafde5770 (diff)
downloadtor-40199b180e53aa36477c75782be51bd689189287.tar.gz
tor-40199b180e53aa36477c75782be51bd689189287.zip
Remove read_all and write_all
These had become wrappers around their fd and socket variants; there were only a few users of the original functions still remaining.
Diffstat (limited to 'src/or/microdesc.c')
-rw-r--r--src/or/microdesc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c
index bbe5ead6b4..838c966a20 100644
--- a/src/or/microdesc.c
+++ b/src/or/microdesc.c
@@ -197,7 +197,7 @@ dump_microdescriptor(int fd, microdesc_t *md, size_t *annotation_len_out)
char annotation[ISO_TIME_LEN+32];
format_iso_time(buf, md->last_listed);
tor_snprintf(annotation, sizeof(annotation), "@last-listed %s\n", buf);
- if (write_all(fd, annotation, strlen(annotation), 0) < 0) {
+ if (write_all_to_fd(fd, annotation, strlen(annotation)) < 0) {
log_warn(LD_DIR,
"Couldn't write microdescriptor annotation: %s",
strerror(errno));
@@ -210,7 +210,7 @@ dump_microdescriptor(int fd, microdesc_t *md, size_t *annotation_len_out)
}
md->off = tor_fd_getpos(fd);
- written = write_all(fd, md->body, md->bodylen, 0);
+ written = write_all_to_fd(fd, md->body, md->bodylen);
if (written != (ssize_t)md->bodylen) {
written = written < 0 ? 0 : written;
log_warn(LD_DIR,