Changeset 333 for trunk/kernel/libk


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

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

File:
1 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__ );
Note: See TracChangeset for help on using the changeset viewer.