Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/viewer/viewer.c

    r39330200 r8e3498b  
    4444#include <codec/tga.h>
    4545#include <task.h>
    46 #include <str.h>
    4746
    4847#define NAME  "viewer"
     
    110109static bool img_load(const char *fname, surface_t **p_local_surface)
    111110{
    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);
     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);
    119117        if (rc != EOK) {
    120118                vfs_put(fd);
Note: See TracChangeset for help on using the changeset viewer.