mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
Fixed complile warnings about warn_unused_result attribute.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
0dcd79ada2
commit
a8e63cd2c0
@ -435,10 +435,8 @@ background_attention (int fd, void *closure)
|
|||||||
{
|
{
|
||||||
len = strlen (resstr);
|
len = strlen (resstr);
|
||||||
ret = write (to_child_fd, &len, sizeof (len));
|
ret = write (to_child_fd, &len, sizeof (len));
|
||||||
if (len)
|
if (len != 0)
|
||||||
{
|
ret = write (to_child_fd, resstr, len);
|
||||||
write (to_child_fd, resstr, len);
|
|
||||||
}
|
|
||||||
g_free (resstr);
|
g_free (resstr);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -168,7 +168,7 @@ rewrite_backup_content (const char *from_file_name, const char *to_file_name)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
fwrite ((const void *) contents, length, 1, backup_fd);
|
length = fwrite ((const void *) contents, length, 1, backup_fd);
|
||||||
|
|
||||||
fflush (backup_fd);
|
fflush (backup_fd);
|
||||||
fclose (backup_fd);
|
fclose (backup_fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user