Fix Linux build of SVN code.
This commit is contained in:
@@ -28,7 +28,7 @@ typedef std::map<std::string, DAVResource*> DAVResourceMap;
|
|||||||
|
|
||||||
const char* DAV_CACHE_NAME = ".terrasync_cache";
|
const char* DAV_CACHE_NAME = ".terrasync_cache";
|
||||||
const char* CACHE_VERSION_4_TOKEN = "terrasync-cache-4";
|
const char* CACHE_VERSION_4_TOKEN = "terrasync-cache-4";
|
||||||
const int MAX_UPDATE_REPORT_DEPTH = 3;
|
const unsigned int MAX_UPDATE_REPORT_DEPTH = 3;
|
||||||
|
|
||||||
enum LineState
|
enum LineState
|
||||||
{
|
{
|
||||||
@@ -105,7 +105,7 @@ void SVNDirectory::parseCache()
|
|||||||
while (!file.eof()) {
|
while (!file.eof()) {
|
||||||
if (lineState == LINESTATE_HREF) {
|
if (lineState == LINESTATE_HREF) {
|
||||||
file.getline(href, 1024);
|
file.getline(href, 1024);
|
||||||
++lineState;
|
lineState = LINESTATE_VERSIONNAME;
|
||||||
} else {
|
} else {
|
||||||
assert(lineState == LINESTATE_VERSIONNAME);
|
assert(lineState == LINESTATE_VERSIONNAME);
|
||||||
file.getline(versionName, 1024);
|
file.getline(versionName, 1024);
|
||||||
|
|||||||
@@ -442,7 +442,7 @@ public:
|
|||||||
|
|
||||||
string tagN(const unsigned int n) const
|
string tagN(const unsigned int n) const
|
||||||
{
|
{
|
||||||
int sz = tagStack.size();
|
size_t sz = tagStack.size();
|
||||||
if (n >= sz) {
|
if (n >= sz) {
|
||||||
return string();
|
return string();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user