diff options
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); |