X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=send_common.c;h=a1757a51e0779416e7cdb947fff5fe4a94436f27;hp=a2189b030b39074778798da96ce91c5e52785ed3;hb=c00d7e25de7006d6f88aafb2b485057377a70324;hpb=f8f6605a4f02a15378a36618dbfacfc862fc6192 diff --git a/send_common.c b/send_common.c index a2189b03..a1757a51 100644 --- a/send_common.c +++ b/send_common.c @@ -7,6 +7,7 @@ /** \file send_common.c Functions used by more than one paraslash sender. */ #include +#include #include "para.h" #include "error.h" #include "string.h" @@ -214,7 +215,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 +390,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" ); } @@ -443,6 +445,7 @@ out: /** * Parse a FEC URL string. * + * \param arg the URL string to parse. * \param scd The structure containing host, port and the FEC parameters. * * \return Standard.