X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Ffnet-adc.c;h=a72935b17b10acf9b12695f2b40ae1ace5a62481;hb=0d6c5363e8da57e184e5db8306dd4d2a703f5888;hp=ecbffe35d69409afa3edbfde437d9168f3afb172;hpb=24a794c2e44028e8ec37b1be811b64acafaa7174;p=doldaconnect.git diff --git a/daemon/fnet-adc.c b/daemon/fnet-adc.c index ecbffe3..a72935b 100644 --- a/daemon/fnet-adc.c +++ b/daemon/fnet-adc.c @@ -192,7 +192,15 @@ static void freeqcmd(struct qcmd *qcmd) } #define ADC_CMDFN(name) static void name(struct fnetnode *fn, wchar_t *command, wchar_t *sender, int argc, wchar_t **argv) -#define ADC_CMDCOM struct socket *sk = fn->sk; struct adchub *hub = fn->data; +#ifdef __GNUC__ +#define ADC_CMDCOM \ + struct socket *sk __attribute__ ((unused)) = fn->sk; \ + struct adchub *hub __attribute__ ((unused)) = fn->data; +#else +#define ADC_CMDCOM \ + struct socket *sk = fn->sk; \ + struct adchub *hub = fn->data; +#endif ADC_CMDFN(cmd_sup) { @@ -469,7 +477,15 @@ static void terminate(void) } static struct configvar myvars[] = { + /** Specifies a specific UDP port to use for ADC search + * results. If left unspecified, a port is allocated + * dynamically. Useful for NAT routers (see also the + * net.visibleipv4 address for those cases). */ {CONF_VAR_INT, "udpport", {.num = 0}}, + /** Specifies a specific TCP port to use for ADC peer + * connections. If left unspecified, a port is allocated + * dynamically. Useful for NAT routers (see also the + * net.visibleipv4 address for those cases). */ {CONF_VAR_INT, "tcpport", {.num = 0}}, {CONF_VAR_END} };