Some minor style changes/clean ups.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3328 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-05-26 01:43:14 +00:00
parent 18a8d114f5
commit 09ed3db89a
2 changed files with 11 additions and 9 deletions

View File

@ -255,14 +255,14 @@ class Inode : public CachedBlock {
class Vnode {
public:
Vnode(Volume *volume,vnode_id id)
Vnode(Volume *volume, vnode_id id)
:
fVolume(volume),
fID(id)
{
}
Vnode(Volume *volume,block_run run)
Vnode(Volume *volume, block_run run)
:
fVolume(volume),
fID(volume->ToVnode(run))
@ -277,13 +277,13 @@ class Vnode {
status_t Get(Inode **inode)
{
// should we check inode against NULL here? it should not be necessary
return get_vnode(fVolume->ID(),fID,(void **)inode);
return get_vnode(fVolume->ID(), fID, (void **)inode);
}
void Put()
{
if (fVolume)
put_vnode(fVolume->ID(),fID);
put_vnode(fVolume->ID(), fID);
fVolume = NULL;
}
@ -304,7 +304,7 @@ class AttributeIterator {
~AttributeIterator();
status_t Rewind();
status_t GetNext(char *name,size_t *length,uint32 *type,vnode_id *id);
status_t GetNext(char *name, size_t *length, uint32 *type, vnode_id *id);
private:
int32 fCurrentSmallData;
@ -316,7 +316,7 @@ class AttributeIterator {
friend Chain<AttributeIterator>;
friend Inode;
void Update(uint16 index,int8 change);
void Update(uint16 index, int8 change);
AttributeIterator *fNext;
};
@ -326,7 +326,8 @@ class AttributeIterator {
* file, it will be converted to R_OK.
*/
inline int oModeToAccess(int omode)
inline int
oModeToAccess(int omode)
{
omode &= O_RWMASK;
if (omode == O_RDONLY)

View File

@ -1547,10 +1547,11 @@ Query::LiveUpdate(Inode *inode, const char *attribute, int32 type, const uint8 *
status_t oldStatus = fExpression->Root()->Match(inode, attribute, type, oldKey, oldLength);
status_t newStatus = fExpression->Root()->Match(inode, attribute, type, newKey, newLength);
int32 op;
if (oldStatus == MATCH_OK && newStatus == MATCH_OK) {
// only send out a notification if the name was changed
if (oldKey == NULL || strcmp(attribute,"name"))
if (oldKey == NULL || strcmp(attribute, "name"))
return;
send_notification(fPort, fToken, B_QUERY_UPDATE, B_ENTRY_REMOVED, fVolume->ID(), 0,