fix compile error

This commit is contained in:
Sukchan Lee 2017-11-29 05:58:26 +00:00
parent dd15dacb18
commit d07b8f1e01
3 changed files with 31 additions and 7 deletions

View File

@ -367,7 +367,11 @@ status_t mme_context_parse_config()
else if (!strcmp(gtpc_key, "port"))
{
const char *v = yaml_iter_value(&gtpc_iter);
if (v) port = atoi(v);
if (v)
{
port = atoi(v);
self.gtpc_port = port;
}
}
else
d_warn("unknown key `%s`", gtpc_key);
@ -912,7 +916,11 @@ status_t mme_context_parse_config()
else if (!strcmp(gtpc_key, "port"))
{
const char *v = yaml_iter_value(&gtpc_iter);
if (v) port = atoi(v);
if (v)
{
port = atoi(v);
self.gtpc_port = port;
}
}
else if (!strcmp(gtpc_key, "apn"))
{

View File

@ -226,7 +226,11 @@ status_t pgw_context_parse_config()
else if (!strcmp(gtpc_key, "port"))
{
const char *v = yaml_iter_value(&gtpc_iter);
if (v) port = atoi(v);
if (v)
{
port = atoi(v);
self.gtpc_port = port;
}
}
else
d_warn("unknown key `%s`", gtpc_key);
@ -294,7 +298,11 @@ status_t pgw_context_parse_config()
else if (!strcmp(gtpu_key, "port"))
{
const char *v = yaml_iter_value(&gtpu_iter);
if (v) port = atoi(v);
if (v)
{
port = atoi(v);
self.gtpu_port = port;
}
}
else
d_warn("unknown key `%s`", gtpu_key);
@ -386,7 +394,7 @@ status_t pgw_context_parse_config()
else if (!strcmp(ue_network_key, "apn"))
{
apn = yaml_iter_value(&ue_network_iter);
d_warn("Not implemented");
d_warn("Not implemented apn=%s", apn);
}
else
d_warn("unknown key `%s`", ue_network_key);

View File

@ -278,7 +278,11 @@ status_t sgw_context_parse_config()
else if (!strcmp(gtpc_key, "port"))
{
const char *v = yaml_iter_value(&gtpc_iter);
if (v) port = atoi(v);
if (v)
{
port = atoi(v);
self.gtpc_port = port;
}
}
else
d_warn("unknown key `%s`", gtpc_key);
@ -346,7 +350,11 @@ status_t sgw_context_parse_config()
else if (!strcmp(gtpu_key, "port"))
{
const char *v = yaml_iter_value(&gtpu_iter);
if (v) port = atoi(v);
if (v)
{
port = atoi(v);
self.gtpu_port = port;
}
}
else
d_warn("unknown key `%s`", gtpu_key);