mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in 'lib/rdcut.cpp'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -21768,3 +21768,5 @@
|
||||
* Removed 'IncrementIndex()', 'GetLock()' and 'ClearLock()' functions
|
||||
from 'lib/rdconf.[cpp|h]'.
|
||||
* Cleaned up compile warning in 'lib/rdconf.cpp'.
|
||||
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Cleaned up compile warnings in 'lib/rdcut.cpp'.
|
||||
|
@@ -1799,13 +1799,14 @@ bool RDCut::FileCopy(const QString &srcfile,const QString &destfile) const
|
||||
}
|
||||
buf=(char *)malloc(dest_stat.st_blksize);
|
||||
while((n=read(src_fd,buf,dest_stat.st_blksize))==dest_stat.st_blksize) {
|
||||
write(dest_fd,buf,dest_stat.st_blksize);
|
||||
RDCheckExitCode("RDCut::FileCopy write",
|
||||
write(dest_fd,buf,dest_stat.st_blksize));
|
||||
bytes+=dest_stat.st_blksize;
|
||||
if((step=10*bytes/src_stat.st_size)!=previous_step) {
|
||||
previous_step=step;
|
||||
}
|
||||
}
|
||||
write(dest_fd,buf,n);
|
||||
RDCheckExitCode("RDCut::FileCopy write",write(dest_fd,buf,n));
|
||||
free(buf);
|
||||
close(src_fd);
|
||||
close(dest_fd);
|
||||
|
Reference in New Issue
Block a user