Changes by: antona
Update of /cvsroot/linux-ntfs/linux-ntfs/libntfs
In directory usw-pr-cvs1:/tmp/cvs-serv345a/libntfs
Modified Files:
attrib.c inode.c
Log Message:
Remove compile time warning...
Index: attrib.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/libntfs/attrib.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -U2 -r1.24 -r1.25
--- attrib.c 19 Apr 2002 21:09:55 -0000 1.24
+++ attrib.c 19 Apr 2002 21:21:46 -0000 1.25
@@ -739,5 +739,7 @@
}
-/**
+/*
+ * Internal function:
+ *
* ntfs_init_attr_search_ctx - initialize an attribute search context
* @ctx: attribute search context to initialize
@@ -800,4 +802,13 @@
* Allocate a new attribute search context, initialize it with @ni and @mrec,
* and return it. Return NULL on error with errno set to ENOMEM.
+ *
+ * @ni can be NULL if the search context is only going to be used in
+ * combination with find_attr().
+ *
+ * If @ni is specified, @mrec can be NULL, in which case the mft record is
+ * taken from @ni.
+ *
+ * If both @ni and @mrec are specified, the mft record is taken from @mrec and
+ * the value of @ni->mrec is ignored.
*/
ntfs_attr_search_ctx *ntfs_get_attr_search_ctx(ntfs_inode *ni, MFT_RECORD *mrec)
Index: inode.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/libntfs/inode.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -U2 -r1.2 -r1.3
--- inode.c 19 Apr 2002 21:09:55 -0000 1.2
+++ inode.c 19 Apr 2002 21:21:46 -0000 1.3
@@ -32,5 +32,5 @@
#include "attrib.h"
-static __inline__ ntfs_inode *__allocate_ntfs_inode(const ntfs_volume *vol)
+static __inline__ ntfs_inode *__allocate_ntfs_inode(ntfs_volume *vol)
{
ntfs_inode *ni;
@@ -79,5 +79,5 @@
* to the error code.
*/
-ntfs_inode *ntfs_open_inode(const ntfs_volume *vol, const MFT_REF mref)
+ntfs_inode *ntfs_open_inode(ntfs_volume *vol, const MFT_REF mref)
{
__s64 l;
|