Changes in uspace/app/viewer/viewer.c [2c7fdaa:6afc9d7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/viewer/viewer.c
r2c7fdaa 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.