]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - command.c
Remove send_bin_buffer().
[paraslash.git] / command.c
index d024b8890277ba7745714f971a2ebcae74a544aa..e344e77acc6bf3c4867ff8e0f3f5c6f1dafb3f4a 100644 (file)
--- a/command.c
+++ b/command.c
@@ -126,7 +126,7 @@ static char *get_status(struct misc_meta_data *nmmd, int parser_friendly)
         * 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);
@@ -786,7 +786,7 @@ __noreturn void handle_connect(int fd, const char *peername)
        }
        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 */