Silence warnings produces by -Wall -pedantic

This commit is contained in:
Vedran Ljubovic
2007-08-03 18:43:40 +00:00
parent 5ea09a105d
commit 4af6344a4b
6 changed files with 18 additions and 17 deletions

View File

@ -316,12 +316,12 @@ bool DirTree::set_current(const char* path) {
// to the given path
// If parent is given, only entries below it will be scanned
int DirTree::find_best_match(const char* path, int parent) {
int bestlen=0;
uint bestlen=0;
int bestindex=-1;
for (int i=parent; i<=size(); i++) {
if ((i!=parent) && (indent(i)<=indent(parent))) break;
char* d = (char*)data(i);
int len = strlen(d);
uint len = strlen(d);
if ((len>bestlen) && (strncmp((char*)path, d, len)==0)) {
bestlen=len;
bestindex=i;