Changeset 503 for trunk/user


Ignore:
Timestamp:
Aug 25, 2018, 6:28:18 PM (6 years ago)
Author:
viala@…
Message:

Add void type on function that takes no parameters, fix invalid call.

Fix invalid calls to thread_can_yield.

In file included from kern/chdev.c:29:
kern/chdev.c: In function 'chdev_sequencial_server':
kern/chdev.c:329:21: error: too many arguments to function 'thread_can_yield'

assert( thread_can_yield( server ) , "illegal sched_yield\n" );

~

Also fixed signature of mapper_create.

Location:
trunk/user
Files:
2 edited

Legend:

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

    r473 r503  
    135135/////////////////////////////////////////////////////////////////////////////////
    136136
    137 void slave();
    138 
    139 double CheckSum();
     137void slave( unsigned int * tid );
     138
     139double CheckSum( void );
    140140
    141141void InitX(double ** x , unsigned int mode);
     
    197197// launch the parallel execution, and makes the instrumentation.
    198198///////////////////////////////////////////////////////////////////
    199 void main()
     199void main ( void )
    200200{
    201201    unsigned int        main_cxy;          // main thread cluster
     
    608608
    609609/////////////////
    610 double CheckSum()
     610double CheckSum( void )
    611611{
    612612    unsigned int         i , j;
  • trunk/user/ksh/ksh.c

    r473 r503  
    822822
    823823/////////////////////////
    824 static void interactive()
     824static void interactive( void )
    825825{
    826826        char           c;                                               // read character
     
    10481048
    10491049//////////
    1050 int main()
     1050int main( void )
    10511051{
    10521052    unsigned int cxy;             // owner cluster identifier for this KSH process
Note: See TracChangeset for help on using the changeset viewer.