* The calls to WRITE_STATUS_ITEM() below never fail because
* b->max_size is zero (unlimited), see para_printf(). However, clang
* is not smart enough to prove this and complains nevertheless.
- * Casting the return value to void silences solves this.
+ * Casting the return value to void silences clang.
*/
(void)WRITE_STATUS_ITEM(&b, SI_FILE_SIZE, "%zu\n", nmmd->size / 1024);
(void)WRITE_STATUS_ITEM(&b, SI_MTIME, "%s\n", mtime);
}
PARA_DEBUG_LOG("sending %u byte challenge + rc4 keys (%zu bytes)\n",
CHALLENGE_SIZE, numbytes);
- ret = send_bin_buffer(fd, buf, numbytes);
+ ret = write_all(fd, buf, numbytes);
if (ret < 0)
goto net_err;
/* recv challenge response */