efreet: Print error on write error

Better solution to stop ignoring return value.

SVN revision: 62502
This commit is contained in:
Sebastian Dransfeld 2011-08-16 12:45:52 +00:00
parent 51e1eca0a9
commit 34d2a47e50
1 changed files with 1 additions and 3 deletions

View File

@ -1090,10 +1090,8 @@ main(int argc, char **argv)
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
if (tmpfd >= 0)
{
int written;
efreet_fsetowner(tmpfd);
written = write(tmpfd, "a", 1);
if (write(tmpfd, "a", 1) != 1) perror("write");
close(tmpfd);
}