X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=send_common.c;h=2af6a8dad7b80cec0e72c621c44be3a3d98a74bf;hp=200e59ab266e7f9c145e6aa7a3dc65ba25d83f52;hb=1e012cf40238883621692051a22fb9c7cad5e944;hpb=0b36e0a77fc750af85e969efda7bda0931f389d0 diff --git a/send_common.c b/send_common.c index 200e59ab..2af6a8da 100644 --- a/send_common.c +++ b/send_common.c @@ -6,7 +6,10 @@ /** \file send_common.c Functions used by more than one paraslash sender. */ +#include #include +#include + #include "para.h" #include "error.h" #include "string.h" @@ -159,8 +162,8 @@ void send_chunk(struct sender_client *sc, struct sender_status *ss, if (ret < 0) goto out; } - sc->header_sent = 1; } + sc->header_sent = 1; ret = send_queued_chunks(sc->fd, sc->cq, max_bytes_per_write); if (ret < 0) { shutdown_client(sc, ss); @@ -214,7 +217,7 @@ void init_sender_status(struct sender_status *ss, char **access_arg, * * \return The string printed in the "si" command. */ -char *get_sender_info(struct sender_status *ss, char *name) +char *get_sender_info(struct sender_status *ss, const char *name) { char *clnts = NULL, *ret; struct sender_client *sc, *tmp_sc;