+ Updated entry_ref_is_root_dir() to Be style calling conventions

+ Added device_is_root_device() call


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1322 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder
2002-10-01 07:23:59 +00:00
parent 83f04694ae
commit 28f43bbd48
2 changed files with 12 additions and 4 deletions
+8 -3
View File
@@ -1126,10 +1126,15 @@ BPrivate::Storage::get_app_path(char *buffer)
}
bool
BPrivate::Storage::entry_ref_is_root_dir( entry_ref &ref )
BPrivate::Storage::entry_ref_is_root_dir( const entry_ref *ref )
{
return ref.directory == 1 && ref.device == 1 && ref.name[0] == '.'
&& ref.name[1] == 0;
return ref && ref->directory == 1 && ref->device == 1 && ref->name[0] == '.'
&& ref->name[1] == 0;
}
bool
BPrivate::Storage::device_is_root_device(dev_t device) {
return device == 1;
}
status_t