summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-20 15:09:42 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-20 16:16:45 -0400
commit057d838409be7d908ce14979a2b486601fad8c08 (patch)
tree7e15b73183b66237859e3ffd5578414cb0f8fedb /src/common/util.c
parent7a2dce90062187cac332cda2ca336db6547fe60b (diff)
downloadtor-057d838409be7d908ce14979a2b486601fad8c08.tar.gz
tor-057d838409be7d908ce14979a2b486601fad8c08.zip
Use raw_assert() in write_all().
This makes tor_log() finally non-circular.
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index cee6a4a23c..4fd07fabc5 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2102,7 +2102,7 @@ write_all(tor_socket_t fd, const char *buf, size_t count, int isSocket)
{
size_t written = 0;
ssize_t result;
- tor_assert(count < SSIZE_MAX);
+ raw_assert(count < SSIZE_MAX);
while (written != count) {
if (isSocket)