diff options
author | danielk1977 <danielk1977@noemail.net> | 2008-09-24 09:12:46 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2008-09-24 09:12:46 +0000 |
commit | 0afae93fa4abd7c23a8f8f558a5080a0f05a17d7 (patch) | |
tree | 42bba15adaf4de4f65e7bf09b176c8f2da582a6b /src | |
parent | 45e60aabc68db2323e34377a53ac154bf757c229 (diff) | |
download | sqlite-0afae93fa4abd7c23a8f8f558a5080a0f05a17d7.tar.gz sqlite-0afae93fa4abd7c23a8f8f558a5080a0f05a17d7.zip |
Fix some function declarations (change "int foo()" to "int foo(void)"). Ticket #3399. (CVS 5740)
FossilOrigin-Name: 0fb98c35353d8c0a8d669bbe45fe84e3a5060621
Diffstat (limited to 'src')
-rw-r--r-- | src/os_unix.c | 6 | ||||
-rw-r--r-- | src/pcache.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index d9272eef9..140fdbd57 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -12,7 +12,7 @@ ** ** This file contains code that is specific to Unix systems. ** -** $Id: os_unix.c,v 1.203 2008/09/23 10:23:26 drh Exp $ +** $Id: os_unix.c,v 1.204 2008/09/24 09:12:47 danielk1977 Exp $ */ #include "sqliteInt.h" #if SQLITE_OS_UNIX /* This file is used on unix only */ @@ -389,10 +389,10 @@ static struct openCnt *openList = 0; /* ** Helper functions to obtain and relinquish the global mutex. */ -static void enterMutex(){ +static void enterMutex(void){ sqlite3_mutex_enter(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER)); } -static void leaveMutex(){ +static void leaveMutex(void){ sqlite3_mutex_leave(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER)); } diff --git a/src/pcache.c b/src/pcache.c index f8f6dcf00..d0dbb41c2 100644 --- a/src/pcache.c +++ b/src/pcache.c @@ -11,7 +11,7 @@ ************************************************************************* ** This file implements that page cache. ** -** @(#) $Id: pcache.c,v 1.31 2008/09/21 15:14:04 drh Exp $ +** @(#) $Id: pcache.c,v 1.32 2008/09/24 09:12:47 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -523,7 +523,7 @@ static int pcachePageSize(PgHdr *p){ ** A pointer to the recycled page is returned, or NULL if no page is ** eligible for recycling. */ -static PgHdr *pcacheRecyclePage(){ +static PgHdr *pcacheRecyclePage(void){ PgHdr *p = 0; assert( sqlite3_mutex_held(pcache_g.mutex) ); @@ -951,7 +951,7 @@ void sqlite3PcacheTruncate(PCache *pCache, Pgno pgno){ ** If there are currently more than pcache.nMaxPage pages allocated, try ** to recycle pages to reduce the number allocated to pcache.nMaxPage. */ -static void pcacheEnforceMaxPage(){ +static void pcacheEnforceMaxPage(void){ PgHdr *p; assert( sqlite3_mutex_held(pcache_g.mutex) ); while( pcache_g.nCurrentPage>pcache_g.nMaxPage && (p = pcacheRecyclePage()) ){ |