diff options
author | Dimitri John Ledkov <dimitri.ledkov@canonical.com> | 2013-12-31 13:28:27 +0000 |
---|---|---|
committer | Dimitri John Ledkov <dimitri.ledkov@canonical.com> | 2013-12-31 13:28:27 +0000 |
commit | 9b4f2dd391d79f67fbff8627d7217f003105dfab (patch) | |
tree | 82a07d69e72baa942283bc332b5d4456a52fbc1a /xmlrpc/config.c | |
parent | 85e11fb132b2b81b50a45647b070e8f6fd648d65 (diff) | |
parent | de57566ca38d821454f8df4dfe36f4820c8fbaa4 (diff) |
Merge tag 'tcos-0.89.93' into dgit/sidHEADdebian/0.89.93master
0.89.93
Diffstat (limited to 'xmlrpc/config.c')
-rw-r--r-- | xmlrpc/config.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xmlrpc/config.c b/xmlrpc/config.c index 8b2e281..f0b62c8 100644 --- a/xmlrpc/config.c +++ b/xmlrpc/config.c @@ -44,7 +44,9 @@ xmlrpc_value *tcos_config(xmlrpc_env *env, xmlrpc_value *in, void *ud) int xauth_ok; struct ip_address ip; char ip_string[BSIZE]; - /*char *fret;*/ + + char *fret; + UNUSED(fret); dbgtcos("tcosxmlrpc::tcos_config() Init \n"); @@ -55,7 +57,7 @@ xmlrpc_value *tcos_config(xmlrpc_env *env, xmlrpc_value *in, void *ud) gethostname(hostname,BSIZE); fp=(FILE*)popen(MY_IP_ADDRESS, "r"); - (void)fgets( ip_string, sizeof ip_string, fp); + fret=fgets( ip_string, sizeof ip_string, fp); remove_line_break(ip_string); pclose(fp); @@ -88,7 +90,7 @@ xmlrpc_value *tcos_config(xmlrpc_env *env, xmlrpc_value *in, void *ud) /* put -1 into line var */ strncpy(line, CONFIG_ERROR, BSIZE); - (void)fgets( line, sizeof line, fp); + fret=fgets( line, sizeof line, fp); remove_line_break(line); pclose(fp); |