Changeset 656 for trunk/user/sort


Ignore:
Timestamp:
Dec 6, 2019, 12:07:51 PM (5 years ago)
Author:
alain
Message:

Fix several bugs in the FATFS and in the VFS,
related to the creation of big files requiring
more than 4 Kbytes (one cluster) on device.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/sort/sort.c

    r652 r656  
    153153}  // end merge()
    154154
    155 ///////////////////////////////////////////////
    156 void sort( pthread_parallel_work_args_t * ptr )
     155///////////////////////////////
     156void * sort( void * arguments )
    157157{
    158158    unsigned int        i;
     
    161161
    162162    // get arguments
     163    pthread_parallel_work_args_t * ptr = (pthread_parallel_work_args_t *)arguments;
     164
    163165    unsigned int        tid            = ptr->tid;
    164166    pthread_barrier_t * parent_barrier = ptr->barrier;
     
    237239    pthread_exit( NULL );
    238240
     241    return NULL;
     242
    239243} // end sort()
    240244
    241245
    242 /////////////////
    243 void main( void )
     246////////////////
     247int main( void )
    244248{
    245249    int                    error;
     
    452456    exit( 0 );
    453457
     458    return 0;
     459
    454460}  // end main()
    455461
Note: See TracChangeset for help on using the changeset viewer.