diff options
Diffstat (limited to 'xmlrpc/reboot_poweroff.c')
-rw-r--r-- | xmlrpc/reboot_poweroff.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmlrpc/reboot_poweroff.c b/xmlrpc/reboot_poweroff.c index ea61b13..fe72335 100644 --- a/xmlrpc/reboot_poweroff.c +++ b/xmlrpc/reboot_poweroff.c @@ -43,7 +43,8 @@ xmlrpc_value *tcos_reboot_poweroff(xmlrpc_env *env, xmlrpc_value *in, void *ud) struct ip_address ip; char ip_string[BSIZE]; char cmd[BIG_BUFFER]; - /*char *fret;*/ + char *fret; + UNUSED(fret); dbgtcos("tcosxmlrpc::tcos_reboot_poweroff() Init \n"); @@ -54,7 +55,7 @@ xmlrpc_value *tcos_reboot_poweroff(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); |