Fixed complile warnings about warn_unused_result attribute.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-07-02 19:47:25 +04:00
parent 0dcd79ada2
commit a8e63cd2c0
2 changed files with 3 additions and 5 deletions

View File

@ -435,10 +435,8 @@ background_attention (int fd, void *closure)
{
len = strlen (resstr);
ret = write (to_child_fd, &len, sizeof (len));
if (len)
{
write (to_child_fd, resstr, len);
}
if (len != 0)
ret = write (to_child_fd, resstr, len);
g_free (resstr);
}
else

View File

@ -168,7 +168,7 @@ rewrite_backup_content (const char *from_file_name, const char *to_file_name)
return FALSE;
}
fwrite ((const void *) contents, length, 1, backup_fd);
length = fwrite ((const void *) contents, length, 1, backup_fd);
fflush (backup_fd);
fclose (backup_fd);