faubackup2/src/common fileinfo.cpp,1.10,1.11 fileinfo.hpp,1.5,1.6
Erik Merkel <[email protected]> Tue, 20 Sep 2005 14:50:40 +0000
| Newsgroups | gmane.comp.sysutils.backup.faubackup.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/faubackup/faubackup2/src/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6688/src/common
Modified Files:
fileinfo.cpp fileinfo.hpp
Log Message:
cosmetic changes
Index: fileinfo.hpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/common/fileinfo.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** fileinfo.hpp 3 Jul 2005 18:37:15 -0000 1.5
--- fileinfo.hpp 20 Sep 2005 14:50:38 -0000 1.6
***************
*** 33,36 ****
--- 33,37 ----
bool fileExist;
+
public:
Fileinfo(string filename, string full_qualified_name);
Index: fileinfo.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/common/fileinfo.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** fileinfo.cpp 20 Sep 2005 14:47:28 -0000 1.10
--- fileinfo.cpp 20 Sep 2005 14:50:38 -0000 1.11
***************
*** 47,51 ****
if(offset != size)
output.critical(F_("internal error calculating Fileinfo from"
! "rawData: %d != %d") % offset % size, 0);
fileName = filename_c;
--- 47,51 ----
if(offset != size)
output.critical(F_("internal error calculating Fileinfo from"
! "rawData: %d != %d") % offset % size, 0);
fileName = filename_c;
***************
*** 96,100 ****
if(offset != size)
output.critical(F_("internal error calculating Fileinfo "
! "rawData: %s != %s") % offset % size, 0);
return return_pointer;
--- 96,100 ----
if(offset != size)
output.critical(F_("internal error calculating Fileinfo "
! "rawData: %s != %s") % offset % size, 0);
return return_pointer;
***************
*** 105,111 ****
{
int size = 4 * 3 //time, filename_size and link_size
! + 2 * 1 // mode and type
! + fileName.length() + 1 // +1 b.o. null termination of c strings
! + 8 * 3;
return size;
}
--- 105,111 ----
{
int size = 4 * 3 //time, filename_size and link_size
! + 2 * 1 // mode and type
! + fileName.length() + 1 // +1 b.o. null termination of c strings
! + 8 * 3;
return size;
}
***************
*** 145,156 ****
type(whatType(st)), fileSize(st.st_size)
{
! if(st.st_nlink > 1){
! inodeNo = st.st_ino;
! deviceNo = st.st_dev;
! }
! else
{
! inodeNo = 0;
! deviceNo =0;
}
fileExist = false;
--- 145,156 ----
type(whatType(st)), fileSize(st.st_size)
{
! if(st.st_nlink > 1)
{
! inodeNo = st.st_ino;
! deviceNo = st.st_dev;
! } else
! {
! inodeNo = 0;
! deviceNo =0;
}
fileExist = false;
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php