X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=send_common.c;h=388fde03bdd4399d40ef3d9ad127f81a8ea75cb3;hp=b81600737e441bef40837f23f7e1d877b297b62a;hb=89761226c7b5fc9e49646e4040ce00a41b15a069;hpb=3f586245327dfe951bcd4bd73d91f52ba9541724 diff --git a/send_common.c b/send_common.c index b8160073..388fde03 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" @@ -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; @@ -389,8 +392,9 @@ char *generic_sender_help(void) { return make_message( "usage: {on|off}\n" - "usage: {allow|deny} IP mask\n" - "example: allow 127.0.0.1 32\n" + "usage: {allow|deny} IP[/netmask]\n" + " where mask defaults to 32\n" + "example: allow 192.168.0.1/24\n" ); }