Updated version sent. Thanks for review.

On 03/31/2016 04:21 PM, Holger Freyther wrote:
>> On 31 Mar 2016, at 15:26, [email protected] wrote:
>>
>>
>> +DEFUN(cfg_nat_include,
>> +      cfg_nat_include_cmd,
>> +      "bscs-config-file NAME",
>> +      "Set the filename of the BSC configuration to include.\n"
>> +      "The filename to be included.")
>> +{
>> +    const char *conf = argv[0];
>> +
>> +    if ('/' == conf[0])
>> +            bsc_replace_string(_nat, &_nat->include_path, conf);
>> +    else {
>> +            _nat->include_path = talloc_strdup_append(_nat->include_path,
>> +                                                      "/");
>> +            _nat->include_path = talloc_strdup_append(_nat->include_path,
>> +                                                      conf);
>> +    }
>
> so If I write
>
>       bscs-config-file bla.cfg
>       bscs-config-file bla2.cfg
>
> How will nat->include_path look after this?
>
>
>

-- 
Max Suraev <[email protected]> http://www.sysmocom.de/
======================================================================= 
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93 
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B 
* Geschaeftsfuehrer / Managing Directors: Holger Freyther, Harald Welte 

Reply via email to