From: solar Date: Fri, 23 Dec 2005 16:04:43 +0000 (+0000) Subject: Added 'void' to empty parameter lists. X-Git-Tag: v0.4~26 X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=e25ac2ecee6251afcec84e08165e454fb6bc256c Added 'void' to empty parameter lists. --- diff --git a/functions/stdlib/abort.c b/functions/stdlib/abort.c index 4a15bf8..b7f0977 100644 --- a/functions/stdlib/abort.c +++ b/functions/stdlib/abort.c @@ -2,7 +2,7 @@ /* Release $Name$ */ -/* abort() +/* abort( void ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. @@ -13,7 +13,7 @@ #ifndef REGTEST -void abort() +void abort( void ) { raise( SIGABRT ); exit( 1 ); diff --git a/functions/stdlib/rand.c b/functions/stdlib/rand.c index 1ad3e91..b8163a3 100644 --- a/functions/stdlib/rand.c +++ b/functions/stdlib/rand.c @@ -2,7 +2,7 @@ /* Release $Name$ */ -/* rand() +/* rand( void ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. @@ -12,7 +12,7 @@ #ifndef REGTEST -int rand() +int rand( void ) { _PDCLIB_seed = _PDCLIB_seed * 1103515245 + 12345; return (unsigned int) ( _PDCLIB_seed / 65536 ) % 32768;