diff options
Diffstat (limited to 'xmlrpc/sound.c')
-rw-r--r-- | xmlrpc/sound.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmlrpc/sound.c b/xmlrpc/sound.c index 3ae3025..f614b0b 100644 --- a/xmlrpc/sound.c +++ b/xmlrpc/sound.c @@ -44,7 +44,8 @@ xmlrpc_value *tcos_sound(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_sound() Init \n"); @@ -55,7 +56,7 @@ xmlrpc_value *tcos_sound(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 +89,7 @@ xmlrpc_value *tcos_sound(xmlrpc_env *env, xmlrpc_value *in, void *ud) /* put error msg into line var */ strncpy(line, SOUND_ERROR, BSIZE); - (void)fgets( line, sizeof line, fp); + fret=fgets( line, sizeof line, fp); remove_line_break(line); pclose(fp); |