Changeset 333


Ignore:
Timestamp:
Aug 7, 2017, 10:11:25 AM (4 years ago)
Author:
max@…
Message:

vfs_user_move() returns an error_t, so don't return a count.

Location:
trunk/kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/elf.c

    r332 r333  
    219219        xptr_t       file_xp;          // extended pointer on created file descriptor
    220220        uint32_t     file_id;          // file descriptor index (unused)
    221         uint32_t     count;            // bytes counter
    222221        error_t      error;
    223222
     
    292291
    293292        // load seg descriptors array to local buffer
    294         count = vfs_user_move( true,       // to_buffer
     293        error = vfs_user_move( true,       // to_buffer
    295294                               file_xp,
    296295                               segs_base,
    297296                               segs_size );
    298297
    299         if( count != segs_size )
     298        if( error )
    300299        {
    301300                printk("\n[ERROR] in %s : cannot read segments descriptors\n", __FUNCTION__ );
  • trunk/kernel/vfs/vfs.c

    r317 r333  
    713713
    714714        if( error ) return -1;
    715         else        return size;
     715        else        return 0;
    716716    }
    717717    else
Note: See TracChangeset for help on using the changeset viewer.