X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fconf.c;h=de39cf971dc003386fd435bf6325284d357afd02;hp=71f1c783afd9bbaa45583c1c76de78516222d4d0;hb=8d472a415e9c5fdb878386005d29cdfd97b8a404;hpb=38c80bdd46fab68c686a293e2820041291972f3a diff --git a/src/conf.c b/src/conf.c index 71f1c783..de39cf97 100644 --- a/src/conf.c +++ b/src/conf.c @@ -19,7 +19,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: conf.c,v 1.9.4.60 2002/09/09 22:32:30 guus Exp $ + $Id: conf.c,v 1.9.4.61 2002/09/15 12:26:24 guus Exp $ */ #include "config.h" @@ -228,24 +228,6 @@ int get_config_address(config_t *cfg, struct addrinfo **result) return 0; } -int get_config_port(config_t *cfg, port_t *result) -{ - cp(); - - if(!cfg) - return 0; - - if(sscanf(cfg->value, "%hu", result) == 1) { - *result = htons(*result); - return 1; - } - - syslog(LOG_ERR, _("Port number expected for configuration variable %s in %s line %d"), - cfg->variable, cfg->file, cfg->line); - - return 0; -} - int get_config_subnet(config_t *cfg, subnet_t ** result) { subnet_t *subnet;