Rename write_nonblock() to xwrite().
[paraslash.git] / crypt.c
diff --git a/crypt.c b/crypt.c
index 85ec091..f33f769 100644 (file)
--- a/crypt.c
+++ b/crypt.c
@@ -298,7 +298,7 @@ int sc_send_bin_buffer(struct stream_cipher_context *scc, char *buf,
                memcpy(remainder, buf + l1, len - l1);
                RC4(&scc->send->key, len - l1, remainder, tmp + l1);
        }
-       ret = write_nonblock(scc->fd, (char *)tmp, len);
+       ret = xwrite(scc->fd, (char *)tmp, len);
        free(tmp);
        return ret;
 }