Changeset 476 for trunk


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

[mini-libc] Add void type to function prototypes with no parameter

Location:
trunk/libs/mini-libc
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/mini-libc/stdio.c

    r473 r476  
    287287
    288288/////////////
    289 int getchar()
     289int getchar( void )
    290290{
    291291    char byte;
  • trunk/libs/mini-libc/stdio.h

    r473 r476  
    6666 * @ returns read character code if success / returns 0 (EOF) if failure.
    6767 ********************************************************************************************/
    68 int getchar();
     68int getchar( void );
    6969
    7070/*********************************************************************************************
  • trunk/libs/mini-libc/stdlib.c

    r473 r476  
    121121
    122122//////////
    123 int rand()
     123int rand( void )
    124124{
    125125    unsigned long long cycle;
  • trunk/libs/mini-libc/stdlib.h

    r473 r476  
    7373 * @ return an integer value between 0 and RAND_MAX.
    7474 ********************************************************************************************/
    75 int rand();
     75int rand( void );
    7676
    7777/*****************************************************************************************
  • trunk/libs/mini-libc/unistd.c

    r473 r476  
    9797
    9898//////////
    99 int fork()
     99int fork( void )
    100100{
    101101    return hal_user_syscall( SYS_FORK, 0, 0, 0, 0 );
     
    103103
    104104////////////
    105 int getpid()
     105int getpid( void )
    106106{
    107107    return hal_user_syscall( SYS_GETPID, 0, 0, 0, 0 );
  • trunk/libs/mini-libc/unistd.h

    r459 r476  
    149149 * @ if failure, returns -1 to parent / no child process is created.
    150150 ****************************************************************************************/
    151 int fork();
     151int fork( void );
    152152
    153153/*****************************************************************************************
     
    178178 * @ returns the process PID for the calling thread process.
    179179 ****************************************************************************************/
    180 int getpid();
     180int getpid( void );
    181181
    182182/*****************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.