Fixed a couple of warnings.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4496 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-09-04 04:23:16 +00:00
parent a7d21bad55
commit e12302da4b
+3 -10
View File
@@ -41,7 +41,7 @@ struct rootfs_stream {
} dir; } dir;
struct stream_symlink { struct stream_symlink {
char *path; char *path;
int length; size_t length;
} symlink; } symlink;
}; };
@@ -154,6 +154,8 @@ insert_cookie_in_jar(struct rootfs_vnode *dir, struct rootfs_cookie *cookie)
static void static void
remove_cookie_from_jar(struct rootfs_vnode *dir, struct rootfs_cookie *cookie) remove_cookie_from_jar(struct rootfs_vnode *dir, struct rootfs_cookie *cookie)
{ {
// ToDo: why is this function not called?
if (cookie->next) if (cookie->next)
cookie->next->prev = cookie->prev; cookie->next->prev = cookie->prev;
if (cookie->prev) if (cookie->prev)
@@ -369,7 +371,6 @@ rootfs_lookup(fs_volume _fs, fs_vnode _dir, const char *name, vnode_id *_id, int
struct rootfs *fs = (struct rootfs *)_fs; struct rootfs *fs = (struct rootfs *)_fs;
struct rootfs_vnode *dir = (struct rootfs_vnode *)_dir; struct rootfs_vnode *dir = (struct rootfs_vnode *)_dir;
struct rootfs_vnode *vnode,*vdummy; struct rootfs_vnode *vnode,*vdummy;
struct rootfs_vnode *v1;
status_t status; status_t status;
TRACE(("rootfs_lookup: entry dir %p, name '%s'\n", dir, name)); TRACE(("rootfs_lookup: entry dir %p, name '%s'\n", dir, name));
@@ -543,13 +544,6 @@ rootfs_write(fs_volume fs, fs_vnode v, fs_cookie cookie, off_t pos, const void *
} }
static off_t
rootfs_seek(fs_volume _fs, fs_vnode _v, fs_cookie _cookie, off_t pos, int st)
{
return ESPIPE;
}
static status_t static status_t
rootfs_create_dir(fs_volume _fs, fs_vnode _dir, const char *name, int perms, vnode_id *_newID) rootfs_create_dir(fs_volume _fs, fs_vnode _dir, const char *name, int perms, vnode_id *_newID)
{ {
@@ -725,7 +719,6 @@ rootfs_write_pages(fs_volume _fs, fs_vnode _v, iovecs *vecs, off_t pos)
static status_t static status_t
rootfs_read_link(fs_volume _fs, fs_vnode _link, char *buffer, size_t bufferSize) rootfs_read_link(fs_volume _fs, fs_vnode _link, char *buffer, size_t bufferSize)
{ {
struct rootfs *fs = _fs;
struct rootfs_vnode *link = _link; struct rootfs_vnode *link = _link;
if (link->stream.type != STREAM_TYPE_SYMLINK) if (link->stream.type != STREAM_TYPE_SYMLINK)