From: Ivo Timmermans Date: Fri, 16 Nov 2001 00:13:08 +0000 (+0000) Subject: Deprecated get_config_ip and get_config_port X-Git-Tag: release-1.0pre5~22 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=72395f989cb44132d7c756c91b3a6d8ba63517e5;p=tinc Deprecated get_config_ip and get_config_port --- diff --git a/src/conf.c b/src/conf.c index b1eb4756..951b24a6 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.47 2001/10/31 20:07:17 guus Exp $ + $Id: conf.c,v 1.9.4.48 2001/11/16 00:13:08 zarq Exp $ */ #include "config.h" @@ -203,40 +203,6 @@ cp return 1; } -int get_config_ip(config_t *cfg, ip_mask_t **result) -{ - ip_mask_t *ip; -cp - if(!cfg) - return 0; - - ip = strtoip(cfg->value); - - if(ip) - { - *result = ip; - return 1; - } - - syslog(LOG_ERR, _("IP address expected for configuration variable %s in %s line %d"), - cfg->variable, cfg->file, cfg->line); - return 0; -} - -int get_config_port(config_t *cfg, port_t *result) -{ -cp - if(!cfg) - return 0; - - if(sscanf(cfg->value, "%hu", result) == 1) - 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) { ip_mask_t *ip;