Changes in uspace/app/viewer/viewer.c [8e3498b:39330200] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/viewer/viewer.c
r8e3498b r39330200 44 44 #include <codec/tga.h> 45 45 #include <task.h> 46 #include <str.h> 46 47 47 48 #define NAME "viewer" … … 109 110 static bool img_load(const char *fname, surface_t **p_local_surface) 110 111 { 111 int fd = vfs_lookup_open(fname, WALK_REGULAR, MODE_READ); 112 if (fd < 0) 113 return false; 114 115 struct stat stat; 116 int rc = vfs_stat(fd, &stat); 112 int fd; 113 errno_t rc = vfs_lookup_open(fname, WALK_REGULAR, MODE_READ, &fd); 114 if (rc != EOK) 115 return false; 116 117 vfs_stat_t stat; 118 rc = vfs_stat(fd, &stat); 117 119 if (rc != EOK) { 118 120 vfs_put(fd);
Note:
See TracChangeset
for help on using the changeset viewer.