This commit is contained in:
mcafee%netscape.com 1999-03-05 04:20:54 +00:00
Родитель 8091fca848
Коммит 327257fb03
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -307,7 +307,7 @@ NS_IMETHODIMP FileImpl::Seek(PRSeekWhence whence, PRInt32 offset)
PRInt32 position = PR_Seek(mFileDesc, 0, PR_SEEK_CUR); PRInt32 position = PR_Seek(mFileDesc, 0, PR_SEEK_CUR);
PRInt32 available = PR_Available(mFileDesc); PRInt32 available = PR_Available(mFileDesc);
PRInt32 fileSize = position + available; PRInt32 fileSize = position + available;
PRInt32 newPosition; PRInt32 newPosition = 0;
switch (whence) switch (whence)
{ {
case PR_SEEK_CUR: newPosition = position + offset; break; case PR_SEEK_CUR: newPosition = position + offset; break;

Просмотреть файл

@ -111,8 +111,8 @@ __get_buf(HTAB *hashp, uint32 addr, BUFHEAD *prev_bp, int newpage)
{ {
register BUFHEAD *bp; register BUFHEAD *bp;
register uint32 is_disk_mask; register uint32 is_disk_mask;
register int is_disk, segment_ndx; register int is_disk, segment_ndx = 0;
SEGMENT segp; SEGMENT segp = 0;
is_disk = 0; is_disk = 0;
is_disk_mask = 0; is_disk_mask = 0;

Просмотреть файл

@ -307,7 +307,7 @@ NS_IMETHODIMP FileImpl::Seek(PRSeekWhence whence, PRInt32 offset)
PRInt32 position = PR_Seek(mFileDesc, 0, PR_SEEK_CUR); PRInt32 position = PR_Seek(mFileDesc, 0, PR_SEEK_CUR);
PRInt32 available = PR_Available(mFileDesc); PRInt32 available = PR_Available(mFileDesc);
PRInt32 fileSize = position + available; PRInt32 fileSize = position + available;
PRInt32 newPosition; PRInt32 newPosition = 0;
switch (whence) switch (whence)
{ {
case PR_SEEK_CUR: newPosition = position + offset; break; case PR_SEEK_CUR: newPosition = position + offset; break;