Obsolete
/
libipc-old
Archived
3
0
Fork 0

fixed somes errors produce by Philip

more_to_read
lapupe 2016-09-28 19:28:35 +02:00
parent fff8ab104a
commit 716a6d1197
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ int file_write (const char *path, const char *buf, size_t msize)
int ret = 0;
int ret2 = 0;
ret = write (fd, buf, msize);
if (ret <= 0) {
fprintf (stderr, "err: written %s\n", path);
if (ret < 0) {
fprintf (stderr, "err: written %s buf = %s\n", path, buf);
}
ret2 = close (fd);