faubackup2/src/common fileinfo.cpp,1.8,1.9 system_calls.cpp,1.12,1.13
Erik Merkel <[email protected]> Sun, 10 Jul 2005 16:33:25 +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-serv7750/common
Modified Files:
fileinfo.cpp system_calls.cpp
Log Message:
using references instead of byval
Index: system_calls.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/common/system_calls.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** system_calls.cpp 27 Jun 2005 09:46:10 -0000 1.12
--- system_calls.cpp 10 Jul 2005 16:33:23 -0000 1.13
***************
*** 87,91 ****
void makeHardLink(string source, string dest)
{
! struct stat st = getStat(source.c_str());
getRegFileLink(dest, source, st);
}
--- 87,92 ----
void makeHardLink(string source, string dest)
{
! struct stat st;
! getStat(source.c_str(), st);
getRegFileLink(dest, source, st);
}
***************
*** 828,832 ****
continue;
string filename = dirName + entry->d_name;
! struct stat st = getStat(filename.c_str());
/* is directory */
if ((st.st_mode & S_IFMT)
--- 829,834 ----
continue;
string filename = dirName + entry->d_name;
! struct stat st;
! getStat(filename.c_str(), st);
/* is directory */
if ((st.st_mode & S_IFMT)
Index: fileinfo.cpp
===================================================================
RCS file: /cvsroot/faubackup/faubackup2/src/common/fileinfo.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** fileinfo.cpp 3 Jul 2005 18:37:15 -0000 1.8
--- fileinfo.cpp 10 Jul 2005 16:33:23 -0000 1.9
***************
*** 132,136 ****
{
fileExist = false;
! struct stat st = getStat(full_qualified_name);
stat_mtime = st.st_mtime;
type = whatType(st);
--- 132,137 ----
{
fileExist = false;
! struct stat st;
! getStat(full_qualified_name, st);
stat_mtime = st.st_mtime;
type = whatType(st);
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar