summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-02-01 16:36:06 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-02-01 16:36:06 (GMT)
commit5343910cba232b5acea4a0ec34432d55f146c3d2 (patch)
tree3c115278f60805e178d8e1c24eae0efafa688713 /Source/kwsys
parent889d900ef29d2eae8bdb6c833f921dc3e59153ce (diff)
downloadCMake-5343910cba232b5acea4a0ec34432d55f146c3d2.zip
CMake-5343910cba232b5acea4a0ec34432d55f146c3d2.tar.gz
CMake-5343910cba232b5acea4a0ec34432d55f146c3d2.tar.bz2
ENH: fix more warnings
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/SystemInformation.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index 376959f..fa28316 100644
--- a/Source/kwsys/SystemInformation.cxx
+++ b/Source/kwsys/SystemInformation.cxx
@@ -2153,7 +2153,7 @@ int SystemInformationImplementation::RetreiveInformationFromCpuInfoFile()
return 0;
}
- long int fileSize = 0;
+ size_t fileSize = 0;
while(!feof(fd))
{
buffer += fgetc(fd);
@@ -2809,7 +2809,7 @@ kwsys_stl::string SystemInformationImplementation::ParseValueFromKStat(const cha
args.push_back("-p");
kwsys_stl::string command = arguments;
- long int start = -1;
+ size_t start = command.npos;
size_t pos = command.find(' ',0);
while(pos!=command.npos)
{