patch-1.3.96 linux/fs/ufs/ufs_symlink.c
Next file: linux/include/asm-i386/smp.h
Previous file: linux/fs/ufs/ufs_super.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Thu Apr 25 13:37:31 1996
- Orig file:
v1.3.95/linux/fs/ufs/ufs_symlink.c
- Orig date:
Wed Apr 24 17:00:41 1996
diff -u --recursive --new-file v1.3.95/linux/fs/ufs/ufs_symlink.c linux/fs/ufs/ufs_symlink.c
@@ -6,7 +6,7 @@
* Laboratory for Computer Science Research Computing Facility
* Rutgers, The State University of New Jersey
*
- * $Id: ufs_symlink.c,v 1.1 1996/04/21 14:41:23 davem Exp $
+ * $Id: ufs_symlink.c,v 1.3 1996/04/25 09:12:11 davem Exp $
*
*/
@@ -15,13 +15,15 @@
#include <asm/segment.h>
+extern int ufs_bmap (struct inode *, int);
+
static int
ufs_readlink(struct inode * inode, char * buffer, int buflen)
{
unsigned long int block;
struct buffer_head * bh = NULL;
char * link;
- int i, err;
+ int i;
char c;
if (inode->i_sb->u.ufs_sb.s_flags & (UFS_DEBUG|UFS_DEBUG_LINKS)) {
@@ -64,8 +66,6 @@
if (bh)
brelse (bh);
return i;
-
- return(0);
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this