Changeset 6afc9d7 in mainline for uspace/app/viewer/viewer.c
- Timestamp:
- 2015-10-06T19:01:36Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0328987
- Parents:
- f1f7584
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/viewer/viewer.c
rf1f7584 r6afc9d7 98 98 { 99 99 int fd = open(fname, O_RDONLY); 100 if (fd <0)100 if (fd != 0) 101 101 return false; 102 102 103 103 struct stat stat; 104 104 int rc = fstat(fd, &stat); 105 if (rc != EOK) {105 if (rc != 0) { 106 106 close(fd); 107 107 return false; … … 114 114 } 115 115 116 ssize_t rd = read _all(fd, tga, stat.size);116 ssize_t rd = read(fd, tga, stat.size); 117 117 if ((rd < 0) || (rd != (ssize_t) stat.size)) { 118 118 free(tga);
Note:
See TracChangeset
for help on using the changeset viewer.