Replace usages of B_FILE_NOT_FOUND in public-facing APIs.
As BeOS R5 had deprecated this error code, this should in theory not cause any particular problems.
This commit is contained in:
@@ -168,7 +168,7 @@ BSoftSynth::SetInstrumentsFile(const char* path)
|
|||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
if (!BEntry(path).Exists())
|
if (!BEntry(path).Exists())
|
||||||
return B_FILE_NOT_FOUND;
|
return B_ENTRY_NOT_FOUND;
|
||||||
|
|
||||||
if (IsLoaded())
|
if (IsLoaded())
|
||||||
Unload();
|
Unload();
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ check_needed_image_versions(image_t* image)
|
|||||||
// the file should also appear in DT_NEEDED.
|
// the file should also appear in DT_NEEDED.
|
||||||
FATAL("%s: Version dependency \"%s\" not found", image->path,
|
FATAL("%s: Version dependency \"%s\" not found", image->path,
|
||||||
fileName);
|
fileName);
|
||||||
return B_FILE_NOT_FOUND;
|
return B_ENTRY_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
elf_vernaux* vernaux
|
elf_vernaux* vernaux
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ static const status_t kErrors[] = {
|
|||||||
B_ERROR,
|
B_ERROR,
|
||||||
B_FILE_ERROR,
|
B_FILE_ERROR,
|
||||||
B_FILE_EXISTS,
|
B_FILE_EXISTS,
|
||||||
B_FILE_NOT_FOUND,
|
|
||||||
B_IS_A_DIRECTORY,
|
B_IS_A_DIRECTORY,
|
||||||
B_LINK_LIMIT,
|
B_LINK_LIMIT,
|
||||||
B_NAME_TOO_LONG,
|
B_NAME_TOO_LONG,
|
||||||
|
|||||||
@@ -35,10 +35,6 @@ status_t DecodeResult(status_t result) {
|
|||||||
str = "B_FILE_ERROR";
|
str = "B_FILE_ERROR";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case B_FILE_NOT_FOUND:
|
|
||||||
str = "B_FILE_NOT_FOUND";
|
|
||||||
break;
|
|
||||||
|
|
||||||
case B_FILE_EXISTS:
|
case B_FILE_EXISTS:
|
||||||
str = "B_FILE_EXISTS";
|
str = "B_FILE_EXISTS";
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user