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);
|
||||
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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user