1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-27 08:52:26 +03:00

Fix a couple of gcc warnings. (CVS 1615)

FossilOrigin-Name: 960f55f3ecbef4581c8cb7be860023ba10de4e96
This commit is contained in:
danielk1977
2004-06-18 06:02:35 +00:00
parent bfd6cce56b
commit 5314c4d7ab
8 changed files with 19 additions and 29 deletions

View File

@@ -607,11 +607,6 @@ int sqlite3OsSeek(OsFile *id, off_t offset){
int sqlite3OsSync(OsFile *id){
SimulateIOError(SQLITE_IOERR);
TRACE2("SYNC %-3d\n", id->h);
{
off_t sz;
sqlite3OsFileSize(id, &sz);
fprintf(stderr,"SYNC %d size=%lld... ", id->h, sz);
}
if( fsync(id->h) ){
return SQLITE_IOERR;
}
@@ -621,7 +616,6 @@ fprintf(stderr,"SYNC %d size=%lld... ", id->h, sz);
close(id->dirfd); /* Only need to sync once, so close the directory */
id->dirfd = -1; /* when we are done. */
}
fprintf(stderr,"DONE\n");
return SQLITE_OK;
}