Changeset 479


Ignore:
Timestamp:
Aug 21, 2018, 9:51:08 PM (6 years ago)
Author:
viala@…
Message:

[kern/syscall] Add void type to function prototypes with no parameter

Location:
trunk/kernel/syscalls
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/sys_fork.c

    r457 r479  
    3939
    4040//////////////
    41 int sys_fork()
     41int sys_fork( void )
    4242{
    4343        process_t       * parent_process_ptr;   // pointer on local parent process descriptor
  • trunk/kernel/syscalls/sys_getpid.c

    r23 r479  
    2525
    2626////////////////
    27 int sys_getpid()
     27int sys_getpid( void )
    2828{
    2929        return CURRENT_THREAD->process->pid;
  • trunk/kernel/syscalls/sys_thread_sleep.c

    r438 r479  
    2828
    2929//////////////////////
    30 int sys_thread_sleep()
     30int sys_thread_sleep( void )
    3131{
    3232
  • trunk/kernel/syscalls/sys_thread_yield.c

    r457 r479  
    2727#include <thread.h>
    2828
    29 int sys_thread_yield()
     29int sys_thread_yield( void )
    3030{
    3131 
  • trunk/kernel/syscalls/sys_undefined.c

    r23 r479  
    2828
    2929///////////////////
    30 int sys_undefined()
     30int sys_undefined( void )
    3131{
    3232    thread_t  * this    = CURRENT_THREAD;
  • trunk/kernel/syscalls/syscalls.h

    r457 r479  
    5858 * @ return always 0.
    5959 *****************************************************************************************/
    60 int sys_thread_yield();
     60int sys_thread_yield( void );
    6161
    6262/******************************************************************************************
     
    454454 * @ returns the process PID for the calling thread.
    455455 *****************************************************************************************/
    456 int sys_getpid();
     456int sys_getpid( void );
    457457
    458458/******************************************************************************************
     
    470470 * @ if failure, returns -1 to parent / no child process is created.
    471471 *****************************************************************************************/
    472 int sys_fork();
     472int sys_fork( void );
    473473
    474474/******************************************************************************************
     
    601601 * @ return 0 if success / returns -1 if failure.
    602602 *****************************************************************************************/
    603 int sys_thread_sleep();
     603int sys_thread_sleep( void );
    604604
    605605/******************************************************************************************
     
    610610 * @ return 0 if success / return -1 if failure.
    611611 *****************************************************************************************/
    612 int sys_thread_wakeup();
     612int sys_thread_wakeup( void );
    613613
    614614/******************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.